changeset 960:37fdfe8f2ab1

fixed crash with float file list and geeqie --blank
author nadvornik
date Tue, 12 Aug 2008 20:21:25 +0000
parents 9791230f83d3
children 3f03282ec40e
files src/layout.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout.c	Mon Aug 11 18:53:19 2008 +0000
+++ b/src/layout.c	Tue Aug 12 20:21:25 2008 +0000
@@ -1589,7 +1589,7 @@
 	layout_image_full_screen_stop(lw);
 
 	dir_fd = lw->dir_fd;
-	file_data_unregister_real_time_monitor(lw->dir_fd);
+	if (dir_fd) file_data_unregister_real_time_monitor(dir_fd);
 	lw->dir_fd = NULL;
 	lw->image = NULL;
 	lw->utility_box = NULL;