aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-button.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-attachment-button.c')
-rw-r--r--widgets/misc/e-attachment-button.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/misc/e-attachment-button.c b/widgets/misc/e-attachment-button.c
index 0d46807307..d3aa4a6350 100644
--- a/widgets/misc/e-attachment-button.c
+++ b/widgets/misc/e-attachment-button.c
@@ -701,9 +701,10 @@ e_attachment_button_set_view (EAttachmentButton *button,
g_return_if_fail (button->priv->view == NULL);
+ g_object_ref (view);
if (button->priv->view)
g_object_unref (button->priv->view);
- button->priv->view = g_object_ref (view);
+ button->priv->view = view;
popup_menu = e_attachment_view_get_popup_menu (view);