diff options
author | Milan Crha <mcrha@redhat.com> | 2011-02-15 02:15:36 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:35 +0800 |
commit | a4e2599f950cd2379a18a4c39cd27f87f090d492 (patch) | |
tree | fb1e71901c4824a0666f40d02c58a3ec72c9033c /shell/e-shell-view.c | |
parent | ecbb0bce4a854e7b617566f43a0b97f85bc63217 (diff) | |
download | gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.gz gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.bz2 gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.lz gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.xz gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.zst gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.zip |
Fix few memory leaks
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index e513eea681..87ec90d058 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -108,8 +108,6 @@ shell_view_init_search_context (EShellViewClass *class) { EShellBackend *shell_backend; ERuleContext *search_context; - EFilterRule *rule; - EFilterPart *part; const gchar *config_dir; gchar *system_filename; gchar *user_filename; @@ -145,15 +143,6 @@ shell_view_init_search_context (EShellViewClass *class) e_rule_context_add_rule, e_rule_context_next_rule); e_rule_context_load (search_context, system_filename, user_filename); - rule = e_filter_rule_new (); - part = e_rule_context_next_part (search_context, NULL); - if (part == NULL) - g_warning ( - "Could not load %s search: no parts", - G_OBJECT_CLASS_NAME (class)); - else - e_filter_rule_add_part (rule, e_filter_part_clone (part)); - g_free (system_filename); g_free (user_filename); } |