[frogr] Fix stupid mistake: Use g_error_free() instead of g_free() for GError



commit 2e1dcf0f12eb926c1cb4c07e2ea3f8812ba5f33d
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Sun Apr 29 18:36:34 2012 +0200

    Fix stupid mistake: Use g_error_free() instead of g_free() for GError

 src/frogr-controller.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 2d06e3e..3e5779d 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -752,7 +752,7 @@ _set_license_cb (GObject *object, GAsyncResult *res, gpointer data)
     {
       /* We do not anything special if something went wrong here */
       DEBUG ("Error setting license for picture: %s", error->message);
-      g_free (error);
+      g_error_free (error);
     }
 
   priv = FROGR_CONTROLLER_GET_PRIVATE (controller);
@@ -777,7 +777,7 @@ _set_location_cb (GObject *object, GAsyncResult *res, gpointer data)
     {
       /* We do not anything special if something went wrong here */
       DEBUG ("Error setting location for picture: %s", error->message);
-      g_free (error);
+      g_error_free (error);
     }
 
   priv = FROGR_CONTROLLER_GET_PRIVATE (controller);



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