[Xfce4-commits] [apps/xfdashboard] 30/31: Free interfaces list at XfdashboardStage
noreply at xfce.org
noreply at xfce.org
Thu Jun 11 19:57:25 CEST 2015
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to annotated tag 0.4.1
in repository apps/xfdashboard.
commit f2c6c4d8cf08a7621f7f75d0d7971a2fd7c47538
Author: Stephan Haller <nomad at froevel.de>
Date: Sat May 16 20:32:44 2015 +0200
Free interfaces list at XfdashboardStage
---
xfdashboard/stage.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/xfdashboard/stage.c b/xfdashboard/stage.c
index fb39d1d..b2b838b 100644
--- a/xfdashboard/stage.c
+++ b/xfdashboard/stage.c
@@ -819,6 +819,11 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
g_critical(_("Could not build interface '%s' from theme '%s'"),
XFDASHBOARD_THEME_LAYOUT_PRIMARY,
xfdashboard_theme_get_theme_name(inTheme));
+
+ /* Release allocated resources */
+ g_list_foreach(interfaces, (GFunc)g_object_unref, NULL);
+ g_list_free(interfaces);
+
return;
}
@@ -828,6 +833,11 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
XFDASHBOARD_THEME_LAYOUT_PRIMARY,
xfdashboard_theme_get_theme_name(inTheme),
g_type_name(XFDASHBOARD_TYPE_STAGE_INTERFACE));
+
+ /* Release allocated resources */
+ g_list_foreach(interfaces, (GFunc)g_object_unref, NULL);
+ g_list_free(interfaces);
+
return;
}
}
@@ -848,6 +858,11 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
XFDASHBOARD_THEME_LAYOUT_SECONDARY,
xfdashboard_theme_get_theme_name(inTheme),
g_type_name(XFDASHBOARD_TYPE_STAGE_INTERFACE));
+
+ /* Release allocated resources */
+ g_list_foreach(interfaces, (GFunc)g_object_unref, NULL);
+ g_list_free(interfaces);
+
return;
}
}
@@ -1081,6 +1096,9 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
}
}
+ /* Release allocated resources */
+ g_list_free(interfaces);
+
/* Set focus */
_xfdashboard_stage_set_focus(self);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list