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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;