mirror of
https://gitlab.gnome.org/GNOME/eog
synced 2024-10-18 14:04:27 +00:00
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:
parent
e95796e648
commit
20cd11b8cc
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue