aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/cal-search-bar.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-01-24 19:33:01 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-01-24 19:33:01 +0800
commit4ed20e6ba0afa83a20cc12da9f2385c34b1931ff (patch)
tree59acb29ac733cae047f80c9fe3530096893a1d69 /calendar/gui/cal-search-bar.c
parent32dc71eaec1260020454061a80ba83cc5a1e2aa4 (diff)
downloadgsoc2013-evolution-4ed20e6ba0afa83a20cc12da9f2385c34b1931ff.tar.gz
gsoc2013-evolution-4ed20e6ba0afa83a20cc12da9f2385c34b1931ff.tar.zst
gsoc2013-evolution-4ed20e6ba0afa83a20cc12da9f2385c34b1931ff.zip
** Fix for bug #402487
2008-01-24 Milan Crha <mcrha@redhat.com> ** 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
Diffstat (limited to 'calendar/gui/cal-search-bar.c')
-rw-r--r--calendar/gui/cal-search-bar.c6
1 files changed, 3 insertions, 3 deletions
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){