Skip to content
Snippets Groups Projects
Commit a398b0d1 authored by ulteq's avatar ulteq
Browse files

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/
parent c59aafb5
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment