SF.net SVN: geany-plugins:[2294] trunk/geany-plugins/webhelper/src
colombanw at users.sourceforge.net
colombanw at xxxxx
Wed Oct 19 22:01:39 UTC 2011
Revision: 2294
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2294&view=rev
Author: colombanw
Date: 2011-10-19 22:01:38 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
WebHelper: plug a few memory leaks
Modified Paths:
--------------
trunk/geany-plugins/webhelper/src/gwh-plugin.c
trunk/geany-plugins/webhelper/src/gwh-settings.c
Modified: trunk/geany-plugins/webhelper/src/gwh-plugin.c
===================================================================
--- trunk/geany-plugins/webhelper/src/gwh-plugin.c 2011-10-19 20:27:22 UTC (rev 2293)
+++ trunk/geany-plugins/webhelper/src/gwh-plugin.c 2011-10-19 22:01:38 UTC (rev 2294)
@@ -381,6 +381,7 @@
g_warning ("Failed to save configuration: %s", err->message);
g_error_free (err);
}
+ g_free (path);
g_object_unref (G_settings);
G_settings = NULL;
}
Modified: trunk/geany-plugins/webhelper/src/gwh-settings.c
===================================================================
--- trunk/geany-plugins/webhelper/src/gwh-settings.c 2011-10-19 20:27:22 UTC (rev 2293)
+++ trunk/geany-plugins/webhelper/src/gwh-settings.c 2011-10-19 22:01:38 UTC (rev 2294)
@@ -332,6 +332,7 @@
success = FALSE;
} else {
success = g_file_set_contents (filename, data, length, error);
+ g_free (data);
}
}
g_key_file_free (key_file);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list