[Xfce4-commits] [apps/xfdashboard] 01/05: Fix memory leak in configure function of clock view plugin
noreply at xfce.org
noreply at xfce.org
Thu Feb 25 15:12:02 CET 2016
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit 4899b2002b4715739660daec8688bc0143f973e6
Author: Stephan Haller <nomad at froevel.de>
Date: Thu Feb 25 12:36:30 2016 +0100
Fix memory leak in configure function of clock view plugin
---
plugins/clock-view/plugin.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/clock-view/plugin.c b/plugins/clock-view/plugin.c
index 16f12e3..006a35a 100644
--- a/plugins/clock-view/plugin.c
+++ b/plugins/clock-view/plugin.c
@@ -259,6 +259,9 @@ static GObject* plugin_configure(XfdashboardPlugin *self, gpointer inUserData)
_plugin_configure_setup_color_button(GTK_COLOR_BUTTON(widgetValue), settings, "background-color");
gtk_grid_attach_next_to(GTK_GRID(layout), widgetValue, widgetLabel, GTK_POS_RIGHT, 1, 1);
+ /* Release allocated resources */
+ if(settings) g_object_unref(settings);
+
/* Return layout widget containing all other widgets */
return(G_OBJECT(layout));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list