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



commit 3d3beb9cd54cab920464eeccde612f01640d1ea7
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 d4cf9a8..251e2b2 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -876,7 +876,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]