[planner] Fix leak of GtkItemFactory in resource view
- From: Maurice van der Pot <mvdpot src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [planner] Fix leak of GtkItemFactory in resource view
- Date: Tue, 24 Nov 2009 20:04:54 +0000 (UTC)
commit 37cbf89a3c4a8301d6effdeaeb92e4024d80f18d
Author: Maurice van der Pot <griffon26 kfk4ever com>
Date: Fri Nov 20 21:34:51 2009 +0100
Fix leak of GtkItemFactory in resource view
src/planner-resource-view.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/planner-resource-view.c b/src/planner-resource-view.c
index 1263ddd..de44405 100644
--- a/src/planner-resource-view.c
+++ b/src/planner-resource-view.c
@@ -358,6 +358,11 @@ resource_view_finalize (GObject *object)
view = PLANNER_RESOURCE_VIEW (object);
+ if (view->priv->popup_factory) {
+ g_object_unref (view->priv->popup_factory);
+ view->priv->popup_factory = NULL;
+ }
+
if (view->priv->property_to_column) {
g_hash_table_unref (view->priv->property_to_column);
view->priv->property_to_column = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]