[X2Go-Commits] [libx2goclient] 02/09: src/x2goclient-network.c: "copy" socket options object instead of just getting it.
git-admin at x2go.org
git-admin at x2go.org
Thu Aug 15 17:40:09 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository libx2goclient.
commit e4cc863dd80f047da019d59d6f34c98308d4c0ca
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Aug 15 11:36:07 2019 +0200
src/x2goclient-network.c: "copy" socket options object instead of just getting it.
"Copying" actually means incrementing the refcount in this case.
Likewise, we'll have to remember to clear it out, but destructors etc.
are still supposed to come.
---
src/x2goclient-network.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/x2goclient-network.c b/src/x2goclient-network.c
index b1d3792..3af4f12 100644
--- a/src/x2goclient-network.c
+++ b/src/x2goclient-network.c
@@ -105,7 +105,7 @@ static void x2goclient_network_set_property (GObject *object, guint prop_id, con
break;
case (X2GO_NET_PROP_OPTIONS):
g_free (priv->options);
- priv->options = g_value_get_object (value);
+ priv->options = g_value_dup_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, param_spec);
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git
More information about the x2go-commits
mailing list