aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-09-13 23:37:59 +0800
committerDan Winship <danw@src.gnome.org>2001-09-13 23:37:59 +0800
commit00368d2905d4bd8da5dbf82f93e41043eeb349ff (patch)
tree1cd3cc901dc67326b27abd0a6768aa93ad3866b2 /widgets
parent486e8ae7116850ef3513127567f5d2bc927c338d (diff)
downloadgsoc2013-evolution-00368d2905d4bd8da5dbf82f93e41043eeb349ff.tar.gz
gsoc2013-evolution-00368d2905d4bd8da5dbf82f93e41043eeb349ff.tar.zst
gsoc2013-evolution-00368d2905d4bd8da5dbf82f93e41043eeb349ff.zip
Unref the model after creating the ETable, since the table will hold a ref
* gal/e-text/e-completion-view.c (e_completion_view_construct): Unref the model after creating the ETable, since the table will hold a ref on it until we destroy it when we're destroyed. * gal/e-text/e-entry.c (e_entry_destroy): Unref the popup window rather than destroying it. svn path=/trunk/; revision=12798
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-completion-view.c1
-rw-r--r--widgets/text/e-entry.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/widgets/text/e-completion-view.c b/widgets/text/e-completion-view.c
index fc10ff7b66..7ef019130c 100644
--- a/widgets/text/e-completion-view.c
+++ b/widgets/text/e-completion-view.c
@@ -740,6 +740,7 @@ e_completion_view_construct (ECompletionView *cv, ECompletion *completion)
cv);
cv->table = e_table_scrolled_new (cv->model, NULL, simple_spec, NULL);
+ gtk_object_unref (GTK_OBJECT (cv->model));
e_scroll_frame_set_shadow_type (E_SCROLL_FRAME (cv->table), GTK_SHADOW_NONE);
e_scroll_frame_set_scrollbar_spacing (E_SCROLL_FRAME (cv->table), 0);
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index 120db13637..4345994126 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -1126,7 +1126,7 @@ e_entry_destroy (GtkObject *object)
if (entry->priv->completion)
gtk_object_unref (GTK_OBJECT (entry->priv->completion));
if (entry->priv->completion_view_popup)
- gtk_widget_destroy (entry->priv->completion_view_popup);
+ gtk_object_unref (GTK_OBJECT (entry->priv->completion_view_popup));
g_free (entry->priv->pre_browse_text);
if (entry->priv->changed_since_keypress_tag)