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



commit 69acb6f616ec9b2de86b91a0312ac7f1dd7ebeee
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 23701a5..e10d1d9 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -855,7 +855,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]