From a398b0d16faec1a08ce793e88edf5f9fb101624c Mon Sep 17 00:00:00 2001 From: ulteq Date: Wed, 27 Dec 2017 18:58:13 +0100 Subject: Utilize the imlib cache properly This prevents removing the image data from the cache, when moving back and forth between images. As suggested by the Imlib documentation: http://alien.cern.ch/cache/imlib2-1.0.6/doc/ --- src/winwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winwidget.c b/src/winwidget.c index 81f3c4f..7ee63c2 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -1008,7 +1008,7 @@ void winwidget_rename(winwidget winwid, char *newname) void winwidget_free_image(winwidget w) { if (w->im) - gib_imlib_free_image_and_decache(w->im); + gib_imlib_free_image(w->im); w->im = NULL; w->im_w = 0; w->im_h = 0; -- cgit v1.2.3