[goffice] Do not unref twice the same component editor.
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Do not unref twice the same component editor.
- Date: Sat, 21 Jul 2012 16:03:23 +0000 (UTC)
commit c94b4d7550b215e65426939b030c95d408d74da2
Author: Jean Brefort <jean brefort normalesup org>
Date: Sat Jul 21 18:02:08 2012 +0200
Do not unref twice the same component editor.
ChangeLog | 5 +++++
goffice/component/go-component.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b463116..e607116 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-21 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/component/go-component.c (go_component_stop_editing): do not
+ unref twice the same object. Related to #680190.
+
2012-07-20 Jean Brefort <jean brefort normalesup org>
* goffice/component/go-component.c (go_component_finalize),
diff --git a/goffice/component/go-component.c b/goffice/component/go-component.c
index 5546fa8..eceb67d 100644
--- a/goffice/component/go-component.c
+++ b/goffice/component/go-component.c
@@ -498,6 +498,7 @@ void go_component_stop_editing (GOComponent *component)
g_return_if_fail (GO_IS_COMPONENT (component));
if (component->editor)
gtk_widget_destroy (GTK_WIDGET (component->editor));
+ component->editor = NULL;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]