[nautilus/gnome-3-18] progress-info: Use the proper destroy method



commit 3244ae8658563a581dda192716a3ac534c7c9b8c
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Oct 27 15:26:41 2015 +0100

    progress-info: Use the proper destroy method
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757190

 libnautilus-private/nautilus-progress-info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-progress-info.c b/libnautilus-private/nautilus-progress-info.c
index a554b5b..de913a3 100644
--- a/libnautilus-private/nautilus-progress-info.c
+++ b/libnautilus-private/nautilus-progress-info.c
@@ -92,7 +92,7 @@ nautilus_progress_info_finalize (GObject *object)
 
        g_free (info->status);
        g_free (info->details);
-        g_clear_object (&info->progress_timer);
+        g_clear_pointer (&info->progress_timer, (GDestroyNotify) g_timer_destroy);
         g_cancellable_disconnect (info->cancellable, info->cancellable_id);
        g_object_unref (info->cancellable);
         g_cancellable_cancel (info->details_in_thread_cancellable);


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