aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-search-bar.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 029e2c20f6..812fcc80d8 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-24 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #402487
+
+ * e-search-bar.c: (search_now_verb_cb), (scopeoption_changed_cb):
+ Memory leak fix.
+
2008-01-24 Srinivasa Ragavan <sragavan@novell.com>
* e-multi-config-dialog.c: (canvas_realize),
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 0365938507..fa2813da5d 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -205,7 +205,7 @@ search_now_verb_cb (BonoboUIComponent *ui_component,
{
ESearchBar *esb;
GtkStyle *style = gtk_widget_get_default_style ();
- const char *text;
+ char *text;
esb = E_SEARCH_BAR (data);
text = e_search_bar_get_text (esb);
@@ -222,6 +222,7 @@ search_now_verb_cb (BonoboUIComponent *ui_component,
gtk_widget_modify_base (esb->icon_entry, GTK_STATE_NORMAL, NULL);
}
+ g_free (text);
emit_search_activated (esb);
}
@@ -530,7 +531,7 @@ entry_key_press_cb (GtkWidget *widget,
static void
scopeoption_changed_cb (GtkWidget *option_menu, ESearchBar *search_bar)
{
- const gchar *text = NULL;
+ char *text = NULL;
text = e_search_bar_get_text (search_bar);
if (!(text && *text))
@@ -538,6 +539,8 @@ scopeoption_changed_cb (GtkWidget *option_menu, ESearchBar *search_bar)
if(!search_bar->block_search)
emit_query_changed (search_bar);
+
+ g_free (text);
}
#endif