Revision: 1987
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1987&view=rev
Author: phantom_sf
Date: 2008-05-29 02:30:45 -0700 (Thu, 29 May 2008)
Log Message:
-----------
2008-05-29 P.G. Richardson <phantom_sf at users.sourceforge.net>
* src/display_photo.c
Fix for pixbufs not being unreference in display_photo.c
Modified Paths:
--------------
gtkpod/trunk/ChangeLog
gtkpod/trunk/src/display_photo.c
Modified: gtkpod/trunk/ChangeLog
===================================================================
--- gtkpod/trunk/ChangeLog 2008-05-28 14:28:12 UTC (rev 1986)
+++ gtkpod/trunk/ChangeLog 2008-05-29 09:30:45 UTC (rev 1987)
@@ -1,3 +1,9 @@
+2008-05-29 P.G. Richardson <phantom_sf at users.sourceforge.net>
+
+ * src/display_photo.c
+
+ Fix for pixbufs not being unreference in display_photo.c
+
2008-05-24 Jorg Schuler <jcsjcs at users.sourceforge.net>
* src/file.c (video_thumbnail_setup_cache): fixed compiler warning
Modified: gtkpod/trunk/src/display_photo.c
===================================================================
--- gtkpod/trunk/src/display_photo.c 2008-05-28 14:28:12 UTC (rev 1986)
+++ gtkpod/trunk/src/display_photo.c 2008-05-29 09:30:45 UTC (rev 1987)
@@ -725,6 +725,7 @@
gtk_image_set_from_pixbuf (photo_preview_image, scaled);
gtk_misc_set_padding (GTK_MISC(photo_preview_image), 20, 20);
+ gdk_pixbuf_unref (scaled);
}
/**
@@ -904,12 +905,12 @@
gdk_pixbuf_unref (pixbuf);
gchar *index_str= NULL;
- index_str = (gchar *) g_malloc (sizeof(gint));
- g_sprintf (index_str, "%d", index);
+ index_str = g_strdup_printf ("%d", index);
/* Add a new row to the model */
gtk_list_store_append (model, &iter);
gtk_list_store_set (model, &iter, COL_THUMB_NAIL, scaled,
COL_THUMB_FILENAME, index_str, COL_THUMB_ARTWORK, photo, -1);
+ gdk_pixbuf_unref (scaled);
g_free (index_str);
}
@@ -1469,6 +1470,7 @@
g_return_if_fail (pixbuf);
display_image_dialog (pixbuf);
+ gdk_pixbuf_unref (pixbuf);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2