gnome-commander r1505 - in trunk: . src



Author: epiotr
Date: Thu Jan 10 21:46:46 2008
New Revision: 1505
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1505&view=rev

Log:
Fix for memory leak

Modified:
   trunk/ChangeLog
   trunk/src/gnome-cmd-con-device.cc

Modified: trunk/src/gnome-cmd-con-device.cc
==============================================================================
--- trunk/src/gnome-cmd-con-device.cc	(original)
+++ trunk/src/gnome-cmd-con-device.cc	Thu Jan 10 21:46:46 2008
@@ -477,11 +477,10 @@
 
         con->go_pixmap = gnome_cmd_pixmap_new_from_file (icon_path, dev_icon_size, dev_icon_size);
         con->open_pixmap = gnome_cmd_pixmap_new_from_file (icon_path, dev_icon_size, dev_icon_size);
-        con->close_pixmap = gnome_cmd_pixmap_new_from_file (icon_path, dev_icon_size, dev_icon_size);
 
-        if (con->close_pixmap)
+        if (con->open_pixmap)
         {
-            GdkPixbuf *overlay = gdk_pixbuf_copy (con->close_pixmap->pixbuf);
+            GdkPixbuf *overlay = gdk_pixbuf_copy (con->open_pixmap->pixbuf);
 
             if (overlay)
             {
@@ -493,7 +492,7 @@
                                           MIN (gdk_pixbuf_get_width (umount), dev_icon_size),
                                           MIN (gdk_pixbuf_get_height (umount), dev_icon_size),
                                           overlay, 0, 0);
-                    // FIXME: free con->close_pixmap here
+
                     con->close_pixmap = gnome_cmd_pixmap_new_from_pixbuf (overlay);
                 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]