[grilo] net: plug some leaks
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] net: plug some leaks
- Date: Wed, 19 Jun 2013 19:29:09 +0000 (UTC)
commit d67561d3887ed60e68d190805eaae78e6b180cd9
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Thu Jun 13 11:53:18 2013 +0000
net: plug some leaks
libs/net/grl-net-mock.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libs/net/grl-net-mock.c b/libs/net/grl-net-mock.c
index 3b4c6d7..5795047 100644
--- a/libs/net/grl-net-mock.c
+++ b/libs/net/grl-net-mock.c
@@ -77,7 +77,9 @@ get_url_mocked (GrlNetWc *self,
GRL_NET_WC_ERROR_NETWORK_ERROR,
"%s",
_("No mock definition found"));
+ g_free (new_url);
g_simple_async_result_complete_in_idle (G_SIMPLE_ASYNC_RESULT (result));
+ g_object_unref (result);
return;
}
@@ -89,7 +91,9 @@ get_url_mocked (GrlNetWc *self,
_("Could not find mock content %s"),
error->message);
g_error_free (error);
+ g_free (new_url);
g_simple_async_result_complete_in_idle (G_SIMPLE_ASYNC_RESULT (result));
+ g_object_unref (result);
return;
}
if (data_file[0] != '/') {
@@ -106,6 +110,8 @@ get_url_mocked (GrlNetWc *self,
"%s",
_("Could not access mock content"));
g_simple_async_result_complete_in_idle (G_SIMPLE_ASYNC_RESULT (result));
+ g_object_unref (result);
+ g_free (new_url);
if (data_file)
g_free (data_file);
if (full_path)
@@ -121,6 +127,7 @@ get_url_mocked (GrlNetWc *self,
new_url,
NULL);
g_simple_async_result_complete_in_idle (G_SIMPLE_ASYNC_RESULT (result));
+ g_object_unref (result);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]