# HG changeset patch # User zas_ # Date 1210336990 0 # Node ID aa883b6d2ef68b4d7884984ad8f5721abe054bbc # Parent d9c9d05c9d4d791346bf859187631224a2de2d1b image_osd_info_render(): if there's no fd, just return. diff -r d9c9d05c9d4d -r aa883b6d2ef6 src/image-overlay.c --- a/src/image-overlay.c Fri May 09 12:33:24 2008 +0000 +++ b/src/image-overlay.c Fri May 09 12:43:10 2008 +0000 @@ -283,6 +283,9 @@ gint w, h; GHashTable *vars; ImageWindow *imd = osd->imd; + FileData *fd = image_get_fd(imd); + + if (!fd) return NULL; vars = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free); @@ -389,10 +392,6 @@ g_hash_table_destroy(vars); { - FileData *fd = image_get_fd(imd); - - if (fd) /* fd may be null after file deletion */ - { gint active_marks = 0; gint mark; gchar *text2; @@ -431,7 +430,6 @@ g_free(text); text = text2; } - } } layout = gtk_widget_create_pango_layout(imd->pr, NULL);