Revision: 1777 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1777&view=re... Author: colombanw Date: 2010-12-19 13:23:50 +0000 (Sun, 19 Dec 2010)
Log Message: ----------- WebHelper: plug a memory leak on browser destruction
Modified Paths: -------------- trunk/geany-plugins/webhelper/src/gwh-browser.c
Modified: trunk/geany-plugins/webhelper/src/gwh-browser.c =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-browser.c 2010-12-19 13:23:32 UTC (rev 1776) +++ trunk/geany-plugins/webhelper/src/gwh-browser.c 2010-12-19 13:23:50 UTC (rev 1777) @@ -510,12 +510,15 @@ gwh_browser_destroy (GtkObject *object) { GwhBrowser *self = GWH_BROWSER (object); + gchar *geometry;
/* save the setting now because we can't really set it at the time it changed, * but it's not a problem, anyway probably nobody but us is interested by the * geometry of our inspector window. */ - g_object_set (self->priv->settings, "inspector-window-geometry", - get_web_inspector_window_geometry (self), NULL); + geometry = get_web_inspector_window_geometry (self); + g_object_set (self->priv->settings, "inspector-window-geometry", geometry, + NULL); + g_free (geometry);
/* remove signal handlers that might get called during the destruction phase * but that rely on stuff that might already heave been destroyed */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org