[grilo-plugins] upnp: don't leak struct OperationSpec
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] upnp: don't leak struct OperationSpec
- Date: Tue, 18 Jan 2011 09:35:45 +0000 (UTC)
commit 5193a5f1b8afad068b6d38bb1f8a064b14f575f3
Author: Jussi Kukkonen <jku linux intel com>
Date: Thu Jan 13 16:30:10 2011 +0200
upnp: don't leak struct OperationSpec
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/upnp/grl-upnp.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/upnp/grl-upnp.c b/src/upnp/grl-upnp.c
index 5cd5d92..fad9766 100644
--- a/src/upnp/grl-upnp.c
+++ b/src/upnp/grl-upnp.c
@@ -907,12 +907,16 @@ gupnp_browse_cb (GUPnPServiceProxy *service,
GRL_WARNING (" Reason: %s", error->message);
g_error_free (error);
}
+
+ g_slice_free (struct OperationSpec, os);
return;
}
if (!didl || !returned) {
GRL_DEBUG ("Got no results");
os->callback (os->source, os->operation_id, NULL, 0, os->user_data, NULL);
+
+ g_slice_free (struct OperationSpec, os);
return;
}
@@ -946,6 +950,7 @@ gupnp_browse_cb (GUPnPServiceProxy *service,
return;
}
+ g_slice_free (struct OperationSpec, os);
g_free (didl);
g_object_unref (didl_parser);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]