summaryrefslogtreecommitdiff
path: root/src/winwidget.c
diff options
context:
space:
mode:
authorulteq <ulteq@web.de>2017-12-27 18:58:13 +0100
committerulteq <ulteq@web.de>2017-12-27 18:58:13 +0100
commita398b0d16faec1a08ce793e88edf5f9fb101624c (patch)
tree51017dad2a65153b22da713d84c5ce6444d9264b /src/winwidget.c
parentc59aafb5b3f6a8063e24c53042be178ada155552 (diff)
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/
Diffstat (limited to 'src/winwidget.c')
-rw-r--r--src/winwidget.c2
1 files changed, 1 insertions, 1 deletions
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;