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



commit 432010880cd027abed16b730ba25ad34002c2823
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 b3a3772..21fa9ec 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -571,7 +571,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]