Revision: 2097
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2097&view=rev
Author:   phantom_sf
Date:     2008-08-16 14:29:05 +0000 (Sat, 16 Aug 2008)

Log Message:
-----------
2008-08-16 Paul Richardson <phantom_sf at users.sourceforge.net>

        * src/display.c: memory leak fix in display_image_dialog. Thanks to
          Tomas Carnecky for the patch.

Modified Paths:
--------------
    gtkpod/trunk/ChangeLog
    gtkpod/trunk/src/display.c

Modified: gtkpod/trunk/ChangeLog
===================================================================
--- gtkpod/trunk/ChangeLog      2008-08-09 17:00:34 UTC (rev 2096)
+++ gtkpod/trunk/ChangeLog      2008-08-16 14:29:05 UTC (rev 2097)
@@ -1,3 +1,8 @@
+2008-08-16 Paul Richardson <phantom_sf at users.sourceforge.net>
+
+       * src/display.c: memory leak fix in display_image_dialog. Thanks to
+         Tomas Carnecky for the patch.  
+
 2008-08-04 Jorg Schuler <jcsjcs at users.sourceforge.net>
 
        * src/sort_window.c: fix bug that selected sort column (for track

Modified: gtkpod/trunk/src/display.c
===================================================================
--- gtkpod/trunk/src/display.c  2008-08-09 17:00:34 UTC (rev 2096)
+++ gtkpod/trunk/src/display.c  2008-08-16 14:29:05 UTC (rev 2097)
@@ -562,9 +562,7 @@
        gint pixwidth = gdk_pixbuf_get_width (image);
                
        /* Set the resolution in the label */
-       gchar *resvalues = (gchar *) g_malloc (sizeof(gint) + (sizeof(gchar) * 
3) + sizeof(gint));
-       g_sprintf (resvalues, "%d x %d", pixwidth, pixheight);
-       text = g_markup_printf_escaped (_("<b>Image Dimensions: %s</b>"), 
resvalues);
+       text = g_markup_printf_escaped (_("<b>Image Dimensions: %d x %d</b>"), 
pixwidth, pixheight);
        gtk_label_set_markup (GTK_LABEL (res_label), text);
        g_free (text);
        


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to