[libsoup] replace g_hash_table_destroy with _unref for server query



commit adcf9a68f56030dcbf3eab5b0717209392f45240
Author: Bernhard Schuster <schuster bernhard gmail com>
Date:   Fri Jun 21 09:42:46 2013 +0200

    replace g_hash_table_destroy with _unref for server query
    
    This is necessary to allow passing the query on to another thread, given
    that the developer adds another reference. With the current destroy
    thing this will not work.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702793

 libsoup/soup-server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-server.c b/libsoup/soup-server.c
index acf8fa1..ff51e5b 100644
--- a/libsoup/soup-server.c
+++ b/libsoup/soup-server.c
@@ -907,7 +907,7 @@ call_handler (SoupMessage *msg, SoupClientContext *client)
                                   client, hand->user_data);
 
                if (form_data_set)
-                       g_hash_table_destroy (form_data_set);
+                       g_hash_table_unref (form_data_set);
        }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]