[Goodies-commits] r6455 - in xfce4-screenshooter/trunk: . panel-plugin
Jerome Guelfucci
jeromeg at xfce.org
Wed Jan 14 07:55:45 CET 2009
Author: jeromeg
Date: 2009-01-14 06:55:45 +0000 (Wed, 14 Jan 2009)
New Revision: 6455
Modified:
xfce4-screenshooter/trunk/ChangeLog
xfce4-screenshooter/trunk/NEWS
xfce4-screenshooter/trunk/panel-plugin/screenshooter-plugin.c
Log:
Plug two additionnal leaks
Modified: xfce4-screenshooter/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter/trunk/ChangeLog 2009-01-13 22:10:36 UTC (rev 6454)
+++ xfce4-screenshooter/trunk/ChangeLog 2009-01-14 06:55:45 UTC (rev 6455)
@@ -1,5 +1,12 @@
2009-01-13 jeromeg
+ * panel-plugin/screenshooter-plugin.c:
+ - (screenshooter_plugin_read_rc_file) plug a leak.
+ - (screenshooter_plugin_write_rc_file) plug a leak.
+ * NEWS: updated.
+
+2009-01-13 jeromeg
+
* Update NEWS and TODO.
2009-01-13 jeromeg
Modified: xfce4-screenshooter/trunk/NEWS
===================================================================
--- xfce4-screenshooter/trunk/NEWS 2009-01-13 22:10:36 UTC (rev 6454)
+++ xfce4-screenshooter/trunk/NEWS 2009-01-14 06:55:45 UTC (rev 6455)
@@ -4,7 +4,8 @@
- Fix some compiler warnings.
- Fix in typo in the desktop file for the application and the
plugin.
- - Plug some leaks when saving a screenshot.
+ - Plug some leaks when saving a screenshot and when saving
+ preferences in the panel plugin.
* Enhancements:
- Updated translations.
Modified: xfce4-screenshooter/trunk/panel-plugin/screenshooter-plugin.c
===================================================================
--- xfce4-screenshooter/trunk/panel-plugin/screenshooter-plugin.c 2009-01-13 22:10:36 UTC (rev 6454)
+++ xfce4-screenshooter/trunk/panel-plugin/screenshooter-plugin.c 2009-01-14 06:55:45 UTC (rev 6455)
@@ -185,8 +185,11 @@
static void
screenshooter_plugin_read_rc_file (XfcePanelPlugin *plugin, PluginData *pd)
{
- screenshooter_read_rc_file (xfce_panel_plugin_lookup_rc_file (plugin),
- pd->sd);
+ gchar *rc_file = xfce_panel_plugin_lookup_rc_file (plugin);
+
+ screenshooter_read_rc_file (rc_file, pd->sd);
+
+ g_free (rc_file);
}
@@ -198,8 +201,11 @@
static void
screenshooter_plugin_write_rc_file (XfcePanelPlugin *plugin, PluginData *pd)
{
- screenshooter_write_rc_file (
- xfce_panel_plugin_save_location (plugin, TRUE), pd->sd);
+ gchar * rc_file = xfce_panel_plugin_save_location (plugin, TRUE);
+
+ screenshooter_write_rc_file (rc_file, pd->sd);
+
+ g_free (rc_file);
}
More information about the Goodies-commits
mailing list