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:
committed by
Morten Welinder
parent
22767f65f7
commit
72d48463da
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user