2009-12-05 [pawel] 3.7.3cvs33
authorPaweł Pękala <c0rn@gazeta.pl>
Sat, 5 Dec 2009 08:12:06 +0000 (08:12 +0000)
committerPaweł Pękala <c0rn@gazeta.pl>
Sat, 5 Dec 2009 08:12:06 +0000 (08:12 +0000)
* src/messageview.c
Fix memory management, duh!

ChangeLog
PATCHSETS
configure.ac
src/messageview.c

index 56a71ce..a1f4151 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-05 [pawel]     3.7.3cvs33
+
+       * src/messageview.c
+               Fix memory management, duh!
+
 2009-12-04 [pawel]     3.7.3cvs32
 
        * src/messageview.c
index 3b3d37e..1cf9e0b 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.529 -r 1.382.2.530 src/compose.c;  ) > 3.7.3cvs30.patchset
 ( cvs diff -u -r 1.382.2.530 -r 1.382.2.531 src/compose.c;  ) > 3.7.3cvs31.patchset
 ( cvs diff -u -r 1.94.2.205 -r 1.94.2.206 src/messageview.c;  cvs diff -u -r 1.1.2.12 -r 1.1.2.13 src/uri_opener.c;  ) > 3.7.3cvs32.patchset
+( cvs diff -u -r 1.94.2.206 -r 1.94.2.207 src/messageview.c;  ) > 3.7.3cvs33.patchset
index dbc9ba1..dae21ab 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=7
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=32
+EXTRA_VERSION=33
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 24f92cd..4dead34 100644 (file)
@@ -2802,9 +2802,12 @@ void messageview_list_urls (MessageView  *msgview)
 {
        GSList *cur = msgview->mimeview->textview->uri_list;
        GSList *newlist = NULL;
-       GHashTable *uri_hashtable = g_hash_table_new(g_str_hash, g_str_equal);
+       GHashTable *uri_hashtable;
        gchar *tmp;
        
+       uri_hashtable = g_hash_table_new_full(g_str_hash, g_str_equal,
+                                        (GDestroyNotify) g_free, NULL);
+       
        for (; cur; cur = cur->next) {
                ClickableText *uri = (ClickableText *)cur->data;
                if (uri->uri &&
@@ -2824,7 +2827,6 @@ void messageview_list_urls (MessageView   *msgview)
                        newlist = g_slist_prepend(newlist, uri);
                        g_hash_table_insert(uri_hashtable, tmp,
                                            GUINT_TO_POINTER(g_str_hash(tmp)));
-                       g_free(tmp);
                }
        }
        newlist = g_slist_reverse(newlist);