summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adb2517)
raw | patch | inline | side by side (parent: adb2517)
author | Max Kellermann <max@duempel.org> | |
Fri, 7 Nov 2008 15:14:32 +0000 (16:14 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 7 Nov 2008 15:14:32 +0000 (16:14 +0100) |
Free the old pattern before prompting for a new one. Free the old
filelist object before retrieving the new one.
filelist object before retrieving the new one.
src/screen_search.c | patch | blob | history |
diff --git a/src/screen_search.c b/src/screen_search.c
index 4e2f922ec0caa39c7bf669eedb10857732378a2c..51a8a2966c064f29f873ef2d799f6d9f1ff4468f 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
{
search_clear(c, TRUE);
+ g_free(pattern);
pattern = screen_readln(screen.status_window.w,
_("Search: "),
NULL,
return;
}
+ if (browser.filelist != NULL) {
+ filelist_free(browser.filelist);
+ browser.filelist = NULL;
+ }
+
if (!MPD_VERSION_LT(c, 0, 12, 0))
browser.filelist = search_advanced_query(pattern, c);