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 /widgets | |
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 'widgets')
-rw-r--r-- | widgets/misc/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/misc/e-search-bar.c | 7 |
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 |