[gedit] Protect view's extension set from destroy running many times
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Protect view's extension set from destroy running many times
- Date: Mon, 5 Jul 2010 09:44:56 +0000 (UTC)
commit 4272af146ba997b75377588df6cb2044648d068d
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Jul 5 11:44:45 2010 +0200
Protect view's extension set from destroy running many times
gedit/gedit-view.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index 1f9dd43..cfd6bfa 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -476,10 +476,14 @@ gedit_view_destroy (GtkObject *object)
view = GEDIT_VIEW (object);
- peas_extension_set_call (view->priv->extensions,
- "deactivate",
- view);
- g_object_unref (view->priv->extensions);
+ if (view->priv->extensions != NULL)
+ {
+ peas_extension_set_call (view->priv->extensions,
+ "deactivate",
+ view);
+ g_object_unref (view->priv->extensions);
+ view->priv->extensions = NULL;
+ }
if (view->priv->search_window != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]