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
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
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
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
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
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;