From 4ed20e6ba0afa83a20cc12da9f2385c34b1931ff Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 24 Jan 2008 11:33:01 +0000 Subject: ** Fix for bug #402487 2008-01-24 Milan Crha ** Fix for bug #402487 * calendar/gui/cal-search-bar.c: (notify_e_cal_view_contains): * mail/em-folder-browser.c: (emfb_search_search_activated), (generate_viewoption_menu): * widgets/misc/e-search-bar.c: (search_now_verb_cb), (scopeoption_changed_cb): Memory leak fix. svn path=/trunk/; revision=34880 --- calendar/gui/cal-search-bar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/cal-search-bar.c b/calendar/gui/cal-search-bar.c index d82d0e7ce6..fdaa0ff791 100644 --- a/calendar/gui/cal-search-bar.c +++ b/calendar/gui/cal-search-bar.c @@ -412,12 +412,12 @@ notify_e_cal_view_contains (CalSearchBar *cal_search, const char *field, const c if (!text) return; /* This is an error in the UTF8 conversion, not an empty string! */ - if (text && *text) { + if (text && *text) sexp = g_strdup_printf ("(contains? \"%s\" \"%s\")", field, text); - g_free (text); - } else + else sexp = g_strdup ("(contains? \"summary\" \"\")"); /* Show all */ + g_free (text); /* Apply the selected view on search */ if (view && *view){ -- cgit