aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/cal-search-bar.c6
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){