Fix several leaked lists.

2007-01-13  Felix Riemann  <friemann@svn.gnome.org>

	* libeog/eog-wrap-list.c: (eog_wrap_list_dispose):
	* shell/main.c: (handle_cmdline_args):
	Fix several leaked lists.

svn path=/trunk/; revision=3458
This commit is contained in:
Felix Riemann 2007-01-13 20:51:38 +00:00 committed by Felix Riemann
parent e95796e648
commit 20cd11b8cc
3 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-01-13 Felix Riemann <friemann@svn.gnome.org>
* libeog/eog-wrap-list.c: (eog_wrap_list_dispose):
* shell/main.c: (handle_cmdline_args):
Fix several leaked lists.
2007-01-13 Felix Riemann <friemann@svn.gnome.org>
* libeog/eog-wrap-list.c: (eog_wrap_list_init),

View file

@ -240,6 +240,17 @@ eog_wrap_list_dispose (GObject *object)
g_object_unref (G_OBJECT (priv->model));
priv->model = NULL;
if (priv->view_order) {
g_list_foreach (priv->view_order, (GFunc) gtk_object_destroy, NULL);
g_list_free (priv->view_order);
priv->view_order = NULL;
}
if (priv->selected_items) {
g_list_free (priv->selected_items);
priv->selected_items = NULL;
}
/* FIXME: free the items and item array */
G_OBJECT_CLASS (eog_wrap_list_parent_class)->dispose (object);

View file

@ -540,6 +540,9 @@ handle_cmdline_args (gpointer data)
startup_file_list = string_array_to_list ((const gchar **) startup_files);
open_uri_list_cb (NULL, startup_file_list, NULL);
g_slist_foreach (startup_file_list, (GFunc) g_free, NULL);
g_slist_free (startup_file_list);
return FALSE;
}