Fix: Add missing callback reset in RE_InitRenderCB

This caused an ASan abort while looking into #101993.

From what I can tell, the issue is that when you click the render button on
the Render Layer node, RENDER_OT_render sets the callback. Then, when you
hit F12 later, it reuses the Render from before, including the callback,
but the corresponding handle has been freed already.
This commit is contained in:
Lukas Stockner 2024-03-25 01:38:55 +01:00
parent 02a488d0fe
commit 05a9f96446
1 changed files with 2 additions and 1 deletions

View File

@ -562,8 +562,9 @@ void RE_InitRenderCB(Render *re)
else {
re->stats_draw_cb = stats_nothing;
}
re->draw_lock_cb = nullptr;
/* clear callback handles */
re->dih = re->dch = re->duh = re->sdh = re->prh = re->tbh = nullptr;
re->dih = re->dch = re->duh = re->sdh = re->prh = re->tbh = re->dlh = nullptr;
}
void RE_FreeRender(Render *re)