Commit 01aed558 authored by Stephan Arts's avatar Stephan Arts

Cleanup memory-leaks

parent 2e5441ed
......@@ -6,7 +6,8 @@ x.x.x
- Show a 'Loading...' message in the statusbar when loading an image or
directory-contents.
- Reload image when it is changed on the filesystem.
- Add a new accelerator to force a reload (ctrl-r)
- Add a new accelerator to force a reload (ctrl-r) - (requires the removal
of ~/.config/ristretto/accels.scm)
0.5.2
=====
......
......@@ -791,6 +791,13 @@ cb_rstto_read_file ( gpointer user_data )
iter = g_slist_next (iter);
}
if (loader->n_files > 0)
{
g_free (loader->files);
}
g_object_unref (loader->file_enum);
g_free (loader);
return FALSE;
}
return TRUE;
......
......@@ -648,6 +648,11 @@ rstto_image_viewer_destroy(GtkObject *object)
g_object_unref (viewer->priv->pixbuf);
viewer->priv->pixbuf = NULL;
}
if (viewer->priv->iter)
{
g_object_unref (viewer->priv->iter);
viewer->priv->iter = NULL;
}
g_free (viewer->priv);
viewer->priv = NULL;
}
......
......@@ -1310,6 +1310,9 @@ rstto_main_window_image_list_iter_changed (RsttoMainWindow *window)
gtk_menu_shell_append (GTK_MENU_SHELL (open_with_window_menu), menu_item);
menu_item = gtk_separator_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (open_with_menu), menu_item);
g_list_foreach (app_list, (GFunc)g_object_unref, NULL);
g_list_free (app_list);
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment