[X2Go-Commits] [libx2goclient] 05/13: src/x2goclient-network.c: replace g_string_free () with g_boxed_free ().

git-admin at x2go.org git-admin at x2go.org
Sat Jun 27 14:42:20 CEST 2020


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository libx2goclient.

commit d881f3633c951d0baf01fa7a84c018a3019349a2
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Fri Jun 26 12:16:37 2020 +0200

    src/x2goclient-network.c: replace g_string_free () with g_boxed_free ().
    
    It's probably better to use the more generic function, although we'll
    have to specify the type explicitly in that case.
---
 src/x2goclient-network.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/x2goclient-network.c b/src/x2goclient-network.c
index 0dba284..a1a4a70 100644
--- a/src/x2goclient-network.c
+++ b/src/x2goclient-network.c
@@ -118,7 +118,7 @@ static void x2goclient_network_class_init (X2GoClientNetworkClass *klass) {
                                                                           "land there."),
                                                                         default_session_path->str,
                                                                         G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
-  g_string_free (default_session_path, TRUE);
+  g_boxed_free (G_TYPE_GSTRING, default_session_path);
   default_session_path = NULL;
 
   g_object_class_install_properties (object_class, X2GO_NET_N_PROPERTIES, net_obj_properties);
@@ -145,7 +145,7 @@ static void x2goclient_network_finalize (GObject *object) {
   X2GoClientNetworkPrivate *priv = x2goclient_network_get_instance_private (X2GOCLIENT_NETWORK (object));
 
   if (priv->socket_spec) {
-    g_string_free (priv->socket_spec, TRUE);
+    g_boxed_free (G_TYPE_GSTRING, priv->socket_spec);
     priv->socket_spec = NULL;
   }
   g_free (priv->session_path);

--
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