[Goodies-commits] r5228 - in xfce4-screenshooter-plugin/trunk: . src

Jerome Guelfucci jeromeg at xfce.org
Fri Aug 15 16:18:11 CEST 2008


Author: jeromeg
Date: 2008-08-15 14:18:11 +0000 (Fri, 15 Aug 2008)
New Revision: 5228

Modified:
   xfce4-screenshooter-plugin/trunk/ChangeLog
   xfce4-screenshooter-plugin/trunk/src/main.c
   xfce4-screenshooter-plugin/trunk/src/screenshooter-plugin.c
Log:
Plug a LOT of stupid leaks !


Modified: xfce4-screenshooter-plugin/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter-plugin/trunk/ChangeLog	2008-08-14 14:41:35 UTC (rev 5227)
+++ xfce4-screenshooter-plugin/trunk/ChangeLog	2008-08-15 14:18:11 UTC (rev 5228)
@@ -1,3 +1,7 @@
+2008-08-15 jeromeg
+
+  * src/*: plug a LOT of stupid leaks !
+
 2008-07-17 jeromeg
 
   === 1.3.1 ===

Modified: xfce4-screenshooter-plugin/trunk/src/main.c
===================================================================
--- xfce4-screenshooter-plugin/trunk/src/main.c	2008-08-14 14:41:35 UTC (rev 5227)
+++ xfce4-screenshooter-plugin/trunk/src/main.c	2008-08-15 14:18:11 UTC (rev 5228)
@@ -177,7 +177,9 @@
 	  }
     gtk_widget_destroy( GTK_WIDGET ( chooser ) );
   }
-
+  
+  g_free( sd->screenshot_dir );
+  g_free ( sd );
   g_free( rc_file );
   return 0;
 }

Modified: xfce4-screenshooter-plugin/trunk/src/screenshooter-plugin.c
===================================================================
--- xfce4-screenshooter-plugin/trunk/src/screenshooter-plugin.c	2008-08-14 14:41:35 UTC (rev 5227)
+++ xfce4-screenshooter-plugin/trunk/src/screenshooter-plugin.c	2008-08-15 14:18:11 UTC (rev 5228)
@@ -84,7 +84,9 @@
   	g_signal_handler_disconnect (plugin, pd->style_id);
 
   pd->style_id = 0;
-  g_free (pd);
+  g_free( pd->sd->screenshot_dir );
+  g_free( pd->sd );
+  g_free( pd );
 }
 
 static void
@@ -141,6 +143,8 @@
   pd->sd->whole_screen = whole_screen;
   pd->sd->show_save_dialog = show_save_dialog;
   pd->sd->screenshot_dir = screenshot_dir;
+  
+  g_free( screenshot_dir );
 }
 
 static void




More information about the Goodies-commits mailing list