From: Srinivasa Ragavan Date: Sun, 27 Jan 2008 15:15:36 +0000 (+0000) Subject: ** Fix for bug #511980 X-Git-Tag: LIBSOUP_2_3_0_1~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7773a49c8fd03dfa0ef3c5a695bb2d8dde1000d;p=platform%2Fupstream%2Flibsoup.git ** Fix for bug #511980 2008-01-25 Srinivasa Ragavan ** 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 --- diff --git a/ChangeLog b/ChangeLog index 143fac0..b5c2a3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-01-25 Srinivasa Ragavan + + ** 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 * configure.in: Allow autogening even without AM_PATH_LIBGCRYPT diff --git a/libsoup/soup-message-headers.c b/libsoup/soup-message-headers.c index 646aaed..755e4c3 100644 --- a/libsoup/soup-message-headers.c +++ b/libsoup/soup-message-headers.c @@ -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; }