diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-01-06 17:03:53 -0700 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-01-06 17:03:53 -0700 |
commit | d8bcfabef0c12e5e9314996f05de3699fb500e0a (patch) | |
tree | ad32fd7e7536425b59e30169db5197b94760542e /src | |
parent | 94bfc85404e3b4c8332245629b6c6e1145200023 (diff) | |
parent | 14115e3414aee7103c4a4fe81c35fa69a60227e0 (diff) |
Merge remote branch 'keis/valgrind' into experimental
Diffstat (limited to 'src')
-rw-r--r-- | src/uzbl-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c index c8caa5a..6bbed3c 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -1146,6 +1146,7 @@ search_text (WebKitWebView *page, GArray *argv, const gboolean forward) { if (g_strcmp0 (uzbl.state.searchtx, argv_idx(argv, 0)) != 0) { webkit_web_view_unmark_text_matches (page); webkit_web_view_mark_text_matches (page, argv_idx(argv, 0), FALSE, 0); + g_free (uzbl.state.searchtx); uzbl.state.searchtx = g_strdup(argv_idx(argv, 0)); } } @@ -1165,10 +1166,7 @@ search_clear(WebKitWebView *page, GArray *argv, GString *result) { (void) result; webkit_web_view_unmark_text_matches (page); - if(uzbl.state.searchtx) { - g_free(uzbl.state.searchtx); - uzbl.state.searchtx = NULL; - } + uzbl.state.searchtx = strfree (uzbl.state.searchtx); } void |