** Fix for bug #511980
authorSrinivasa Ragavan <sragavan@novell.com>
Sun, 27 Jan 2008 15:15:36 +0000 (15:15 +0000)
committerSrinivasa Ragavan <sragavan@src.gnome.org>
Sun, 27 Jan 2008 15:15:36 +0000 (15:15 +0000)
2008-01-25  Srinivasa Ragavan  <sragavan@novell.com>

** Fix for bug #511980

* libsoup/soup-message-headers.c: (soup_message_headers_clear):
Instead of destroying the hashtable, just remove the contents of the
table.

svn path=/trunk/; revision=1052

ChangeLog
libsoup/soup-message-headers.c

index 143fac0..b5c2a3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-01-25  Srinivasa Ragavan  <sragavan@novell.com>
+
+       ** Fix for bug #511980
+
+       * libsoup/soup-message-headers.c: (soup_message_headers_clear):
+       Instead of destroying the hashtable, just remove the contents of the
+       table.
+
 2008-01-23  Tor Lillqvist  <tml@novell.com>
 
        * configure.in: Allow autogening even without AM_PATH_LIBGCRYPT
index 646aaed..755e4c3 100644 (file)
@@ -92,7 +92,7 @@ soup_message_headers_clear (SoupMessageHeaders *hdrs)
        g_array_set_size (hdrs->array, 0);
 
        if (hdrs->concat)
-               g_hash_table_destroy (hdrs->concat);
+               g_hash_table_remove_all (hdrs->concat);
 
        hdrs->encoding = -1;
 }