diff options
author | Milan Crha <mcrha@redhat.com> | 2008-01-24 19:33:01 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-01-24 19:33:01 +0800 |
commit | 4ed20e6ba0afa83a20cc12da9f2385c34b1931ff (patch) | |
tree | 59acb29ac733cae047f80c9fe3530096893a1d69 /calendar | |
parent | 32dc71eaec1260020454061a80ba83cc5a1e2aa4 (diff) | |
download | gsoc2013-evolution-4ed20e6ba0afa83a20cc12da9f2385c34b1931ff.tar gsoc2013-evolution-4ed20e6ba0afa83a20cc12da9f2385c34b1931ff.tar.gz gsoc2013-evolution-4ed20e6ba0afa83a20cc12da9f2385c34b1931ff.tar.bz2 gsoc2013-evolution-4ed20e6ba0afa83a20cc12da9f2385c34b1931ff.tar.lz gsoc2013-evolution-4ed20e6ba0afa83a20cc12da9f2385c34b1931ff.tar.xz 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')
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/cal-search-bar.c | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index a873c137c2..01b50fe115 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2008-01-24 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #402487 + + * gui/cal-search-bar.c: (notify_e_cal_view_contains): + Memory leak fix. + 2008-01-22 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #337046 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){ |