[frogr] Free memory in the right place



commit 3db6699dc6d0ae87c6861e26888cfe38cc797b8e
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Sun Jul 17 16:59:40 2011 +0200

    Free memory in the right place

 src/frogr-controller.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 9f0d582..c89d2bd 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -421,13 +421,14 @@ _get_auth_url_cb (GObject *obj, GAsyncResult *res, gpointer data)
       GtkWindow *window = NULL;
 
       frogr_util_open_uri (auth_url);
-      g_free (auth_url);
 
       /* Run the auth confirmation dialog */
       window = frogr_main_view_get_window (priv->mainview);
       frogr_auth_dialog_show (window, CONFIRM_AUTHORIZATION);
 
       DEBUG ("Auth URL: %s", auth_url);
+
+      g_free (auth_url);
     }
 
   if (error != NULL)



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