[evolution] Shift remote content alert dereference slightly later in the code



commit 6a0542e388eb349b6252e72223ac94491d4fe495
Author: Milan Crha <mcrha redhat com>
Date:   Mon Mar 30 16:47:24 2015 +0200

    Shift remote content alert dereference slightly later in the code

 mail/e-mail-reader.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index cfcd232..94b393a 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -5287,10 +5287,11 @@ e_mail_reader_load_status_notify_cb (WebKitWebFrame *frame,
                e_alert_add_widget (alert, button); /* button is consumed by the alert */
                preview_pane = e_mail_reader_get_preview_pane (reader);
                e_alert_sink_submit_alert (E_ALERT_SINK (preview_pane), alert);
-               g_object_unref (alert);
 
                priv->remote_content_alert = alert;
                g_object_add_weak_pointer (G_OBJECT (priv->remote_content_alert), 
&priv->remote_content_alert);
+
+               g_object_unref (alert);
        }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]