[nautilus] program-choosing: fix double-free



commit 3f59ba236d2ed8b061d009157d4512ca08f86f73
Author: Ernestas Kulik <ernestask gnome org>
Date:   Wed Aug 9 13:26:31 2017 +0300

    program-choosing: fix double-free
    
    Fixes for https://bugzilla.gnome.org/show_bug.cgi?id=782109 introduced a
    regression in that the Wayland window handle export data is now being
    freed twice. This commit backports the fix for the regression.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786040

 src/nautilus-program-choosing.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-program-choosing.c b/src/nautilus-program-choosing.c
index 51d2e45..08d51f2 100644
--- a/src/nautilus-program-choosing.c
+++ b/src/nautilus-program-choosing.c
@@ -478,8 +478,6 @@ wayland_window_handle_exported (GdkWindow  *window,
     handle_str = g_strdup_printf ("wayland:%s", wayland_handle_str);
     data->callback (data->window, handle_str, data->user_data);
     g_free (handle_str);
-
-    g_free (data);
 }
 #endif
 


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