gnome-commander r1506 - in branches/gcmd-1-3: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1506 - in branches/gcmd-1-3: . src
- Date: Thu, 10 Jan 2008 21:47:10 +0000 (GMT)
Author: epiotr
Date: Thu Jan 10 21:47:10 2008
New Revision: 1506
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1506&view=rev
Log:
Fix for memory leak
Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-con-device.cc
Modified: branches/gcmd-1-3/src/gnome-cmd-con-device.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-con-device.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-con-device.cc	Thu Jan 10 21:47:10 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]