From 1d61dd08525908172022e4d9e46a675f7fc576ad Mon Sep 17 00:00:00 2001 From: Stephen Watson Date: Sat, 16 Apr 2005 10:45:31 +0000 Subject: [PATCH] r3874: Fix ref counting of thumbnails put into the cache --- ROX-Filer/Help/Changes | 5 +++++ ROX-Filer/src/pixmaps.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ROX-Filer/Help/Changes b/ROX-Filer/Help/Changes index 65962ba4..e98bec2b 100644 --- a/ROX-Filer/Help/Changes +++ b/ROX-Filer/Help/Changes @@ -2,6 +2,11 @@ A RISC OS-like filer for X by Thomas Leonard +16-Apr-2005 +~~~~~~~~~~~ +Bugfix: Expired thumbnails were not being purged from the memory cache + because of a reference counting issue (Stephen Watson). + 14-Apr-2005 ~~~~~~~~~~~ Updated Danish translation (Christian Storgaard). diff --git a/ROX-Filer/src/pixmaps.c b/ROX-Filer/src/pixmaps.c index 1918a521..bbf47da3 100644 --- a/ROX-Filer/src/pixmaps.c +++ b/ROX-Filer/src/pixmaps.c @@ -337,6 +337,7 @@ void pixmap_background_thumb(const gchar *path, GFunc callback, gpointer data) gdk_pixbuf_unref(pixbuf); g_fscache_insert(pixmap_cache, path, image, TRUE); callback(data, (gchar *) path); + g_object_unref(G_OBJECT(image)); return; } -- 2.11.4.GIT