Skip to content
Snippets Groups Projects
Commit e264613a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Thumbnail mode: Fix segfault when opening a deleted/renamed file

parent 502e1c9a
No related branches found
No related tags found
No related merge requests found
git HEAD
* Fix segfault in Thumbnail mode when trying to open a no longer
existing image (e.g. when the file was renamed by a previous action)
Sat Jun 5 21:35:25 CEST 2010 Daniel Friesel <derf@chaosdorf.de
* Release v1.6.1
......
......@@ -251,7 +251,8 @@ static void feh_event_handle_ButtonRelease(XEvent * ev)
thumbwin = winwidget_create_from_file(
gib_list_add_front(NULL, thumbfile),
s, WIN_TYPE_THUMBNAIL_VIEWER);
winwidget_show(thumbwin);
if (thumbwin)
winwidget_show(thumbwin);
} else if (FEH_FILE(thumbwin->file->data) != thumbfile) {
free(thumbwin->file);
thumbwin->file = gib_list_add_front(NULL, thumbfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment