[Goodies-commits] r7341 - ristretto/trunk/src
Stephan Arts
stephan at xfce.org
Fri May 15 18:51:44 CEST 2009
Author: stephan
Date: 2009-05-15 16:51:44 +0000 (Fri, 15 May 2009)
New Revision: 7341
Modified:
ristretto/trunk/src/navigator.c
Log:
Fix memleak
Modified: ristretto/trunk/src/navigator.c
===================================================================
--- ristretto/trunk/src/navigator.c 2009-05-15 16:23:26 UTC (rev 7340)
+++ ristretto/trunk/src/navigator.c 2009-05-15 16:51:44 UTC (rev 7341)
@@ -352,9 +352,15 @@
if(entry->src_pixbuf)
{
- gdk_pixbuf_unref(entry->src_pixbuf);
+ g_object_unref(entry->src_pixbuf);
entry->src_pixbuf = NULL;
}
+
+ if(entry->iter)
+ {
+ gdk_pixbuf_unref(entry->iter);
+ entry->iter = NULL;
+ }
}
rstto_navigator_add_entry_to_history(navigator, entry);
More information about the Goodies-commits
mailing list