[goffice] [goc] Minor initialization for canvas widgets
- From: Jody Goldberg <jody src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] [goc] Minor initialization for canvas widgets
- Date: Thu, 17 Nov 2011 10:20:43 +0000 (UTC)
commit 9746610678e7c9a6b6a1b2eeb378f91685a86e4c
Author: Jody Goldberg <jody gnome org>
Date: Thu Nov 17 05:18:43 2011 -0500
[goc] Minor initialization for canvas widgets
Be sure to NULL the ptr after unref
ChangeLog | 5 +++++
goffice/canvas/goc-widget.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d76ba63..4b085ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-16 Jody Goldberg <jody gnome org>
+
+ * goffice/canvas/goc-widget.c (goc_widget_set_widget) : clear the ofbox
+ after unref. Fixes slicer view combo.
+
2011-11-14 Jean Brefort <jean brefort normalesup org>
* goffice/canvas/goc-component.c (goc_component_set_property): don't change
diff --git a/goffice/canvas/goc-widget.c b/goffice/canvas/goc-widget.c
index 4f6621f..1cb251d 100644
--- a/goffice/canvas/goc-widget.c
+++ b/goffice/canvas/goc-widget.c
@@ -594,6 +594,7 @@ goc_widget_set_widget (GocWidget *item, GtkWidget *widget)
item->ofbox);
g_object_unref (item->ofbox);
+ item->ofbox = NULL;
g_object_unref (item->widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]