Free volumes not actually put into the shortcut list.

2004-03-17  Morten Welinder  <terra@gnome.org>

	* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
	volumes not actually put into the shortcut list.
This commit is contained in:
Morten Welinder
2004-03-17 21:52:29 +00:00
committed by Morten Welinder
parent 22767f65f7
commit 72d48463da
6 changed files with 23 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
2004-03-17 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
volumes not actually put into the shortcut list.
* tests/prop-editor.c (object_changed): Plug leak.
* tests/testfilechooser.c (main): Plug some leaks and expose

View File

@@ -1,5 +1,8 @@
2004-03-17 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
volumes not actually put into the shortcut list.
* tests/prop-editor.c (object_changed): Plug leak.
* tests/testfilechooser.c (main): Plug some leaks and expose

View File

@@ -1,5 +1,8 @@
2004-03-17 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
volumes not actually put into the shortcut list.
* tests/prop-editor.c (object_changed): Plug leak.
* tests/testfilechooser.c (main): Plug some leaks and expose

View File

@@ -1,5 +1,8 @@
2004-03-17 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
volumes not actually put into the shortcut list.
* tests/prop-editor.c (object_changed): Plug leak.
* tests/testfilechooser.c (main): Plug some leaks and expose

View File

@@ -1,5 +1,8 @@
2004-03-17 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
volumes not actually put into the shortcut list.
* tests/prop-editor.c (object_changed): Plug leak.
* tests/testfilechooser.c (main): Plug some leaks and expose

View File

@@ -1224,11 +1224,16 @@ shortcuts_add_volumes (GtkFileChooserDefault *impl)
gtk_file_path_free (base_path);
if (!is_local)
continue;
{
gtk_file_system_volume_free (impl->file_system, volume);
continue;
}
}
shortcuts_insert_path (impl, start_row + n, TRUE, volume, NULL, NULL, FALSE, NULL);
n++;
if (shortcuts_insert_path (impl, start_row + n, TRUE, volume, NULL, NULL, FALSE, NULL))
n++;
else
gtk_file_system_volume_free (impl->file_system, volume);
}
impl->num_volumes = n;