[network-manager-applet/nma-0-9-8] connection-editor: fix a double free (bgo #736836)



commit ea89f068bb00c7f73a5f5f920b3ccc46fee5c50a
Author: Dan Winship <danw gnome org>
Date:   Sat Sep 20 18:03:40 2014 -0400

    connection-editor: fix a double free (bgo #736836)
    
    page_initialized() was freeing the error it was passed, but so was its
    caller.
    
    (cherry picked from commit 9fae902c00f39379f22335187ca3f62ccb855df3)

 src/connection-editor/nm-connection-editor.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index 364f1be..ddba831 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -639,7 +639,6 @@ page_initialized (CEPage *page, GError *error, gpointer user_data)
                nm_connection_editor_error (editor->parent_window,
                                            _("Error initializing editor"),
                                            "%s", error->message);
-               g_error_free (error);
                g_signal_emit (editor, editor_signals[EDITOR_DONE], 0, GTK_RESPONSE_NONE);
                return;
        }


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