aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-creation-dialog.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-09-10 02:24:15 +0800
committerDan Winship <danw@src.gnome.org>2001-09-10 02:24:15 +0800
commitafdc8acc65f24b38879ec991b2e335a069633a4a (patch)
tree12bb5657372f9b57f837c86ed26a5ce655b4eb64 /shell/e-shell-folder-creation-dialog.c
parent335bd912c0c00447801e0fa8baa8da16e9cef38a (diff)
downloadgsoc2013-evolution-afdc8acc65f24b38879ec991b2e335a069633a4a.tar
gsoc2013-evolution-afdc8acc65f24b38879ec991b2e335a069633a4a.tar.gz
gsoc2013-evolution-afdc8acc65f24b38879ec991b2e335a069633a4a.tar.bz2
gsoc2013-evolution-afdc8acc65f24b38879ec991b2e335a069633a4a.tar.lz
gsoc2013-evolution-afdc8acc65f24b38879ec991b2e335a069633a4a.tar.xz
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-shell-folder-creation-dialog.c')
-rw-r--r--shell/e-shell-folder-creation-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/e-shell-folder-creation-dialog.c b/shell/e-shell-folder-creation-dialog.c
index cead2d2745..dfee004a1e 100644
--- a/shell/e-shell-folder-creation-dialog.c
+++ b/shell/e-shell-folder-creation-dialog.c
@@ -409,7 +409,7 @@ add_folder_types (GtkWidget *dialog,
TypeWithDisplayName *new;
new = g_new (TypeWithDisplayName, 1);
- new->type = g_strdup ((const char *) p->data);
+ new->type = p->data;
new->display_name = e_folder_type_registry_get_display_name_for_type (folder_type_registry, new->type);
types_with_display_names = g_list_prepend (types_with_display_names, new);
@@ -434,7 +434,7 @@ add_folder_types (GtkWidget *dialog,
gtk_widget_show (menu_item);
gtk_menu_append (GTK_MENU (menu), menu_item);
- gtk_object_set_data (GTK_OBJECT (menu_item), "folder_type", (void *) type->type);
+ gtk_object_set_data_full (GTK_OBJECT (menu_item), "folder_type", g_strdup (type->type), g_free);
if (strcmp (type->type, "mail") == 0)
default_item = i;