diff --git a/src/conio/x_events.c b/src/conio/x_events.c index 086ca7d38d115c6346fe34d3cb29a29722126b8f..6c742e206b0a56e003d44b89f92e7786f27b39d1 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -493,10 +493,9 @@ local_draw_rect(struct rectlist *rect) // Scale... source = do_scale(rect, x_cvstat.scaling, x_cvstat.scaling, x_cvstat.aspect_width, x_cvstat.aspect_height); - if (source == NULL) { - bitmap_drv_free_rect(rect); + bitmap_drv_free_rect(rect); + if (source == NULL) return; - } cleft = source->w; ctop = source->h;