From d7e1a31c69cdb82966a81d0a7ecabfb414e9c5f7 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 3 Dec 1999 14:57:38 +0000 Subject: [PATCH] r125: Fixed an incredibly stupid reference counting bug. Grr. --- ROX-Filer/src/pixmaps.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ROX-Filer/src/pixmaps.c b/ROX-Filer/src/pixmaps.c index 34708872..d229ebba 100644 --- a/ROX-Filer/src/pixmaps.c +++ b/ROX-Filer/src/pixmaps.c @@ -24,7 +24,7 @@ /* Remove pixmaps from the cache when they haven't been accessed for * this period of time (seconds). */ -#define PIXMAP_PURGE_TIME 600 +#define PIXMAP_PURGE_TIME 1200 #include #include @@ -191,7 +191,11 @@ static MaskedPixmap *load(char *pathname, gpointer user_data) static void ref(MaskedPixmap *mp, gpointer data) { if (mp) + { + gdk_pixmap_ref(mp->pixmap); + gdk_bitmap_ref(mp->mask); mp->ref++; + } } static void unref(MaskedPixmap *mp, gpointer data) -- 2.11.4.GIT