Fix PDF viewer not to produce garbage windows for nonexistent files

Was calling window_flush() on redraw handler which already happens on
window redrawing.
This commit is contained in:
Pekka Vuorela 2012-09-17 22:15:54 +03:00 committed by Kristian Høgsberg
parent 80ad1a943d
commit 2bd429b734
1 changed files with 0 additions and 1 deletions

View File

@ -78,7 +78,6 @@ redraw_handler(struct widget *widget, void *data)
if(!view->document) {
cairo_destroy(cr);
cairo_surface_destroy(surface);
window_flush(view->window);
return;
}