Fix leak in the message view window
authorAlberto Garcia <agarcia@igalia.com>
Mon, 21 Jan 2008 15:57:15 +0000 (15:57 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Mon, 21 Jan 2008 15:57:15 +0000 (15:57 +0000)
Fixes NB#78857

pmo-trunk-r4071

src/maemo/modest-msg-view-window.c

index c1151aa..cfd7756 100644 (file)
@@ -1804,6 +1804,9 @@ view_msg_cb (ModestMailOperation *mail_op,
        if (priv->row_reference != NULL) {
                gtk_tree_row_reference_free (priv->row_reference);
                priv->row_reference = gtk_tree_row_reference_copy (row_reference);
+               if (priv->next_row_reference != NULL) {
+                       gtk_tree_row_reference_free (priv->next_row_reference);
+               }
                priv->next_row_reference = gtk_tree_row_reference_copy (priv->row_reference);
                select_next_valid_row (priv->header_model, &(priv->next_row_reference), TRUE);
                gtk_tree_row_reference_free (row_reference);