[yelp/wip/amigadave/webkit2-port] Do not free a GError with g_object_unref()



commit d61d477d60941f557db96d36a9fd04bf83675198
Author: David King <amigadave amigadave com>
Date:   Sun Feb 15 16:27:17 2015 +0000

    Do not free a GError with g_object_unref()
    
    Use g_error_free() instead.

 libyelp/yelp-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index ed2fc46..dc0f1bf 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -840,7 +840,7 @@ help_cb_uri_resolved (YelpUri                *uri,
         }
 
         webkit_uri_scheme_request_finish_error (request, error);
-        g_object_unref (error);
+        g_error_free (error);
     }
 }
 


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