[totem] backend: Fix some small leaks in the proxy handling code
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Fix some small leaks in the proxy handling code
- Date: Thu, 29 Mar 2012 10:31:07 +0000 (UTC)
commit b964da38bab59616ca255b5c2044185eea5fce73
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Mar 29 11:30:09 2012 +0100
backend: Fix some small leaks in the proxy handling code
src/backend/bacon-video-widget-gst-0.10.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 2465df2..d2ed76c 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -2170,8 +2170,7 @@ bvw_set_proxy_on_element (BaconVideoWidget * bvw, GstElement * element)
{
GSettings *settings;
GDesktopProxyMode mode;
- char *url;
- const char *host, *user_id, *user_pw;
+ char *url, *host = NULL, *user_id, *user_pw;
int port;
gboolean is_https;
@@ -2232,8 +2231,11 @@ bvw_set_proxy_on_element (BaconVideoWidget * bvw, GstElement * element)
"proxy-id", user_id,
"proxy-pw", user_pw,
NULL);
+ g_free (user_pw);
+ g_free (user_id);
finish:
+ g_free (host);
g_object_unref (settings);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]