Fix #19897: WM_OT_redraw_timer memory leak using Draw Window.

This commit is contained in:
Brecht Van Lommel 2009-12-14 20:37:05 +00:00
parent a133e57bf3
commit 231ddb67b1

@ -2550,8 +2550,10 @@ static int redraw_timer_exec(bContext *C, wmOperator *op)
CTX_wm_area_set(C, sa); CTX_wm_area_set(C, sa);
for(ar_iter= sa->regionbase.first; ar_iter; ar_iter= ar_iter->next) { for(ar_iter= sa->regionbase.first; ar_iter; ar_iter= ar_iter->next) {
CTX_wm_region_set(C, ar_iter); if(ar_iter->swinid) {
ED_region_do_draw(C, ar_iter); CTX_wm_region_set(C, ar_iter);
ED_region_do_draw(C, ar_iter);
}
} }
} }