[gupnp-tools] av-cp: Do not leak browse data when cancelled
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-tools] av-cp: Do not leak browse data when cancelled
- Date: Sat, 18 Jul 2020 13:32:30 +0000 (UTC)
commit 69f006e04a518ec966da7afbb4980172726358ec
Author: Jens Georg <mail jensge org>
Date: Sat Jul 18 14:44:57 2020 +0200
av-cp: Do not leak browse data when cancelled
src/av-cp/server-device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/av-cp/server-device.c b/src/av-cp/server-device.c
index 820327d..189f654 100644
--- a/src/av-cp/server-device.c
+++ b/src/av-cp/server-device.c
@@ -396,7 +396,7 @@ av_cp_media_server_on_browse (GUPnPServiceProxy *content_dir,
ret->didl_xml = didl_xml;
ret->number_returned = number_returned;
ret->total_matches = total_matches;
- g_task_return_pointer (task, ret, NULL);
+ g_task_return_pointer (task, ret, g_free);
}
g_object_unref (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]