diff options
author | Dan Winship <danw@src.gnome.org> | 2001-09-10 02:24:15 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-09-10 02:24:15 +0800 |
commit | afdc8acc65f24b38879ec991b2e335a069633a4a (patch) | |
tree | 12bb5657372f9b57f837c86ed26a5ce655b4eb64 /shell/e-local-storage.c | |
parent | 335bd912c0c00447801e0fa8baa8da16e9cef38a (diff) | |
download | gsoc2013-evolution-afdc8acc65f24b38879ec991b2e335a069633a4a.tar.gz gsoc2013-evolution-afdc8acc65f24b38879ec991b2e335a069633a4a.tar.zst gsoc2013-evolution-afdc8acc65f24b38879ec991b2e335a069633a4a.zip |
Purify run. All small leaks.
* e-shell-folder-commands.c
(folder_selection_dialog_folder_selected_callback): Free the
folder_command_data when destroying the dialog.
* e-local-storage.c (remove_folder): Free physical_uri if we
allocated it.
* e-shortcuts-view.c (pop_up_right_click_menu_for_group): Unref
the popup menu, don't destroy it.
(destroy_group_cb): Free the question string.
(rename_group_cb): Free the new_name.
* e-shell-importer.c (create_plugin_menu): Free the list of
importers.
(get_iid_for_filetype): Likewise.
(import_druid_finish): #ifdef out some g_strdups that are only
used by other #ifdef'ed-out code.
* e-shell-view.c: Make sure the keys in the uri_to_view hash get
freed.
* e-shell-folder-title-bar.c (set_title_bar_label_style): Unref
the style after setting it on the widget.
* e-shell-offline-handler.c (impl_destroy): free priv.
* e-storage-set-view.c (tree_drag_data_received): Make sure
target_type always gets freed.
* e-shell-folder-creation-dialog.c (add_folder_types): Don't leak
the type names.
svn path=/trunk/; revision=12715
Diffstat (limited to 'shell/e-local-storage.c')
-rw-r--r-- | shell/e-local-storage.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c index c06edcca9a..f90f29ea59 100644 --- a/shell/e-local-storage.c +++ b/shell/e-local-storage.c @@ -534,7 +534,7 @@ remove_folder (ELocalStorage *local_storage, AsyncRemoveFolderCallbackData *callback_data; EvolutionShellComponentClient *component_client; EFolder *folder; - char *physical_path; + char *physical_path, *physical_uri_mem = NULL; GList *subfolder_paths; GList *p; @@ -554,7 +554,7 @@ remove_folder (ELocalStorage *local_storage, physical_path = e_path_to_physical (priv->base_path, path); if (!physical_uri) - physical_uri = g_strconcat ("file://", physical_path, NULL); + physical_uri = physical_uri_mem = g_strconcat ("file://", physical_path, NULL); /* Recursively remove the subfolders */ subfolder_paths = e_storage_get_subfolder_paths (storage, path); @@ -574,6 +574,7 @@ remove_folder (ELocalStorage *local_storage, e_folder_get_type_string (folder), component_async_remove_folder_callback, callback_data); + g_free (physical_uri_mem); return EVOLUTION_SHELL_COMPONENT_OK; } |