[gupnp-tools] av-cp: Plug several memory leaks
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-tools] av-cp: Plug several memory leaks
- Date: Sun, 24 Apr 2016 22:11:07 +0000 (UTC)
commit 4ef91b9ba049abc1c61d06de4fd7feb987615bc4
Author: Jens Georg <mail jensge org>
Date: Sun Apr 24 23:15:39 2016 +0200
av-cp: Plug several memory leaks
Signed-off-by: Jens Georg <mail jensge org>
src/av-cp/main.c | 2 ++
src/av-cp/renderer-combo.c | 3 +++
src/av-cp/renderer-controls.c | 1 +
3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/av-cp/main.c b/src/av-cp/main.c
index 0b1b035..1d92b3c 100644
--- a/src/av-cp/main.c
+++ b/src/av-cp/main.c
@@ -214,6 +214,8 @@ main (gint argc,
gtk_main ();
+ g_option_context_free (context);
+
return 0;
}
diff --git a/src/av-cp/renderer-combo.c b/src/av-cp/renderer-combo.c
index aace96c..114a8ed 100644
--- a/src/av-cp/renderer-combo.c
+++ b/src/av-cp/renderer-combo.c
@@ -588,6 +588,8 @@ get_protocol_info_cb (GUPnPServiceProxy *cm,
5, sink_protocol_info,
-1);
}
+
+ g_free (sink_protocol_info);
}
return_point:
@@ -696,6 +698,7 @@ get_media_info_cb (GUPnPServiceProxy *av_transport,
}
set_duration (udn, duration);
+ g_free (duration);
return_point:
g_object_unref (av_transport);
diff --git a/src/av-cp/renderer-controls.c b/src/av-cp/renderer-controls.c
index 15c91fe..2671305 100644
--- a/src/av-cp/renderer-controls.c
+++ b/src/av-cp/renderer-controls.c
@@ -543,6 +543,7 @@ get_position_info_cb (GUPnPServiceProxy *av_transport,
}
set_position_scale_position (position);
+ g_free (position);
return_point:
g_object_unref (av_transport);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]