[librest/wip/baedert/fixes: 6/7] RestProxy: Don't leak the soup session
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/baedert/fixes: 6/7] RestProxy: Don't leak the soup session
- Date: Tue, 19 Jul 2016 10:44:49 +0000 (UTC)
commit ca2c493f3b865ff921f5a2c27da87f9b4603b4b1
Author: Timm Bäder <mail baedert org>
Date: Mon Jul 18 11:19:07 2016 +0200
RestProxy: Don't leak the soup session
rest/rest-proxy.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index ff2b394..ac16bc6 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -46,7 +46,6 @@ struct _RestProxyPrivate {
gchar *password;
gboolean binding_required;
SoupSession *session;
- SoupSession *session_sync;
gboolean disable_cookies;
char *ssl_ca_file;
};
@@ -264,6 +263,8 @@ rest_proxy_finalize (GObject *object)
g_free (priv->password);
g_free (priv->ssl_ca_file);
+ g_clear_object (&priv->session);
+
G_OBJECT_CLASS (rest_proxy_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]