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-shortcuts-view.c | |
parent | 335bd912c0c00447801e0fa8baa8da16e9cef38a (diff) | |
download | gsoc2013-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-shortcuts-view.c')
-rw-r--r-- | shell/e-shortcuts-view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/e-shortcuts-view.c b/shell/e-shortcuts-view.c index 192d05ab56..24730a6268 100644 --- a/shell/e-shortcuts-view.c +++ b/shell/e-shortcuts-view.c @@ -181,6 +181,7 @@ destroy_group_cb (GtkWidget *widget, _("Remove"), _("Don't remove"), NULL); gnome_dialog_set_parent (GNOME_DIALOG (message_box), GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (shortcuts_view)))); + g_free (question); if (gnome_dialog_run_and_close (GNOME_DIALOG (message_box)) != 0) return; @@ -196,7 +197,7 @@ rename_group_cb (GtkWidget *widget, EShortcuts *shortcuts; EShortcutsView *shortcuts_view; const char *old_name; - const char *new_name; + char *new_name; int group; menu_data = (RightClickMenuData *) data; @@ -216,6 +217,7 @@ rename_group_cb (GtkWidget *widget, /* Remember the group and flip back to it */ group = e_group_bar_get_current_group_num (E_GROUP_BAR (E_SHORTCUT_BAR (shortcuts_view))); e_shortcuts_rename_group (shortcuts, menu_data->group_num, new_name); + g_free (new_name); e_group_bar_set_current_group_num (E_GROUP_BAR (E_SHORTCUT_BAR (shortcuts_view)), group, FALSE); } @@ -282,7 +284,7 @@ pop_up_right_click_menu_for_group (EShortcutsView *shortcuts_view, gnome_popup_menu_do_popup_modal (popup_menu, NULL, NULL, event, menu_data); g_free (menu_data); - gtk_widget_destroy (popup_menu); + gtk_widget_unref (popup_menu); } |