diff options
author | Pavel Cisler <pavel@eazel.com> | 2000-06-07 04:05:26 +0000 |
---|---|---|
committer | Pavel Cisler <pce@src.gnome.org> | 2000-06-07 04:05:26 +0000 |
commit | 7efb3c35cd1d63c5ab0cc36b4ee96b451390a083 (patch) | |
tree | 4947c6268d8eb1f8f6c92687252ef4e3eac3f0c4 /libnautilus-extensions/nautilus-preferences-item.c | |
parent | 62ae037752dc780c7def921c36df45dc2cfb66f0 (diff) | |
download | nautilus-7efb3c35cd1d63c5ab0cc36b4ee96b451390a083.tar.gz |
Fixed leaked uris in each of the above.
2000-06-06 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-mime-actions.c:
(nautilus_mime_get_short_list_applications_for_uri),
(nautilus_mime_get_short_list_components_for_uri),
(nautilus_mime_get_all_applications_for_uri),
(nautilus_mime_get_all_components_for_uri):
Fixed leaked uris in each of the above.
* nautilus-widgets/nautilus-preferences-item.c:
(preferences_item_create_editable_string):
Fix a leaked string.
* nautilus-widgets/nautilus-preferences-item.c:
(has_image_file):
Add a missing gnome_vfs_file_info_init that will make
gnome_vfs_get_file_info not leak.
* src/nautilus-window-menus.c:
(update_user_level_menu_items):
Fix a leaked string.
* src/nautilus-window-menus.c:
(update_preferences_dialog_title):
Fix a leaked title string.
Diffstat (limited to 'libnautilus-extensions/nautilus-preferences-item.c')
-rw-r--r-- | libnautilus-extensions/nautilus-preferences-item.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-preferences-item.c b/libnautilus-extensions/nautilus-preferences-item.c index 9bcc2653f..cb1335d8f 100644 --- a/libnautilus-extensions/nautilus-preferences-item.c +++ b/libnautilus-extensions/nautilus-preferences-item.c @@ -398,6 +398,7 @@ preferences_item_create_editable_string (NautilusPreferencesItem *item, g_assert (current_value != NULL); nautilus_text_caption_set_text (NAUTILUS_TEXT_CAPTION (item->details->child), current_value); + g_free (current_value); gtk_signal_connect (GTK_OBJECT (item->details->child), "changed", @@ -481,6 +482,7 @@ has_image_file(const char *directory_uri, const char *dir_name, const char *requ for (index = 0; index < NAUTILUS_N_ELEMENTS (icon_file_name_suffixes); index++) { temp_str = g_strconcat (base_uri, icon_file_name_suffixes[index], NULL); + gnome_vfs_file_info_init (file_info); result = gnome_vfs_get_file_info (temp_str, file_info, 0, NULL); g_free(temp_str); if (result == GNOME_VFS_OK) { |