[epiphany] ephy-session: fix GTask leak



commit 0a5d0060f7fb508da30040b09d1035aa3f40b2e3
Author: Xan Lopez <xan igalia com>
Date:   Sat Mar 16 14:21:01 2013 +0100

    ephy-session: fix GTask leak
    
    g_task_run_in_thread already refs the task, so we have to unref it
    ourselves after calling it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695905

 src/ephy-session.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index ce13664..0dd6c05 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -953,6 +953,7 @@ ephy_session_save (EphySession *session,
                           save_session_in_thread_cb, NULL);
        g_task_set_task_data (task, data, (GDestroyNotify)save_data_free);
        g_task_run_in_thread (task, save_session_sync);
+       g_object_unref (task);
 }
 
 static void


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