From 179db75ce041706a590e90a6ac7b801b36091ed6 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 24 Jun 2010 20:43:16 +0200 Subject: Bug #620815 - Memory leaks with Evolution --- shell/e-shell-searchbar.c | 1 + shell/e-shell-window-private.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'shell') diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c index ceab21aba5..e8e4fe230d 100644 --- a/shell/e-shell-searchbar.c +++ b/shell/e-shell-searchbar.c @@ -1385,6 +1385,7 @@ e_shell_searchbar_load_state (EShellSearchbar *searchbar) else if (searchbar->priv->search_option != NULL) gtk_radio_action_set_current_value ( searchbar->priv->search_option, 0); + g_free (string); key = STATE_KEY_SEARCH_TEXT; string = g_key_file_get_string (key_file, state_group, key, NULL); diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c index 7e7185963e..200a56dbe6 100644 --- a/shell/e-shell-window-private.c +++ b/shell/e-shell-window-private.c @@ -97,6 +97,8 @@ shell_window_init_switcher_style (EShellWindow *shell_window) gtk_radio_action_set_current_value ( GTK_RADIO_ACTION (action), style); + + g_free (string); } g_signal_connect ( -- cgit v1.2.3