2010-07-24 [colin] 3.7.6cvs19
authorColin Leroy <colin@colino.net>
Sat, 24 Jul 2010 17:02:17 +0000 (17:02 +0000)
committerColin Leroy <colin@colino.net>
Sat, 24 Jul 2010 17:02:17 +0000 (17:02 +0000)
* src/gtk/quicksearch.c
Finish 3.7.5cvs42 patch. Probably fixes bug 2232,
'freeze when using quick search'

ChangeLog
PATCHSETS
configure.ac
src/gtk/quicksearch.c

index 75645a9..35f10a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-24 [colin]     3.7.6cvs19
+
+       * src/gtk/quicksearch.c
+               Finish 3.7.5cvs42 patch. Probably fixes bug 2232,
+               'freeze when using quick search'
+
 2010-07-11 [iwkse]     3.7.6cvs18
 
        * src/gtk/quicksearch.c
index 7996bbc..b882419 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.274.2.312 -r 1.274.2.313 src/mainwindow.c;  cvs diff -u -r 1.1.2.93 -r 1.1.2.94 src/gtk/quicksearch.c;  ) > 3.7.6cvs16.patchset
 ( cvs diff -u -r 1.39.2.58 -r 1.39.2.59 src/mainwindow.h;  ) > 3.7.6cvs17.patchset
 ( cvs diff -u -r 1.1.2.94 -r 1.1.2.95 src/gtk/quicksearch.c;  ) > 3.7.6cvs18.patchset
+( cvs diff -u -r 1.1.2.95 -r 1.1.2.96 src/gtk/quicksearch.c;  ) > 3.7.6cvs19.patchset
index 85c10af..e0fd662 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=7
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=18
+EXTRA_VERSION=19
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 513d0a2..250146e 100644 (file)
@@ -226,19 +226,19 @@ static void searchbar_run(QuickSearch *quicksearch, gboolean run_only_if_fast)
                                if (quicksearch->matcher_list) {
                                        quicksearch->extended_search_strings =
                                                add_history(quicksearch->extended_search_strings,
-                                                               search_string);
+                                                               g_strdup(search_string));
                                        prefs_common.summary_quicksearch_history =
                                                add_history(prefs_common.summary_quicksearch_history,
-                                                               search_string);
+                                                               g_strdup(search_string));
                                }
                                break;
                        default:
                                quicksearch->normal_search_strings =
                                        add_history(quicksearch->normal_search_strings,
-                                                       search_string);         
+                                                       g_strdup(search_string));               
                                prefs_common.summary_quicksearch_history =
                                        add_history(prefs_common.summary_quicksearch_history,
-                                                       search_string);
+                                                       g_strdup(search_string));
                                break;
                }
 
@@ -1402,7 +1402,7 @@ void quicksearch_set_search_strings(QuickSearch *quicksearch)
                                quicksearch->normal_search_strings =
                                        g_list_append(
                                                quicksearch->normal_search_strings,
-                                               strings->data);
+                                               g_strdup(strings->data));
                                g_free(newstr);
                                continue;
                        }