Fixed leak in modest msg view window
authorAlberto Garcia <agarcia@igalia.com>
Fri, 16 Nov 2007 16:10:35 +0000 (16:10 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Fri, 16 Nov 2007 16:10:35 +0000 (16:10 +0000)
pmo-trunk-r3756

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

index d7eb290..eea919d 100644 (file)
@@ -1040,6 +1040,8 @@ void modest_msg_view_window_on_row_inserted(
        gtk_tree_model_get (new_model, tree_iter, 
                        TNY_GTK_HEADER_LIST_MODEL_INSTANCE_COLUMN, &header, -1);
        uid = modest_tny_folder_get_header_unique_id(header);
        gtk_tree_model_get (new_model, tree_iter, 
                        TNY_GTK_HEADER_LIST_MODEL_INSTANCE_COLUMN, &header, -1);
        uid = modest_tny_folder_get_header_unique_id(header);
+       g_object_unref(G_OBJECT(header));
+       header = NULL;
        if(!g_str_equal(priv->msg_uid, uid)){
                g_free(uid);
                return;
        if(!g_str_equal(priv->msg_uid, uid)){
                g_free(uid);
                return;