diff options
Diffstat (limited to 'widgets/text')
-rw-r--r-- | widgets/text/e-completion-view.c | 1 | ||||
-rw-r--r-- | widgets/text/e-entry.c | 2 |
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) |