Fix #22189: fields rendering crashes.
This commit is contained in:
@@ -508,11 +508,14 @@ static void image_renderinfo_cb(void *rjv, RenderStats *rs)
|
||||
|
||||
rr= RE_AcquireResultRead(rj->re);
|
||||
|
||||
/* malloc OK here, stats_draw is not in tile threads */
|
||||
if(rr->text==NULL)
|
||||
rr->text= MEM_callocN(IMA_MAX_RENDER_TEXT, "rendertext");
|
||||
if(rr) {
|
||||
/* malloc OK here, stats_draw is not in tile threads */
|
||||
if(rr->text==NULL)
|
||||
rr->text= MEM_callocN(IMA_MAX_RENDER_TEXT, "rendertext");
|
||||
|
||||
make_renderinfo_string(rs, rj->scene, rr->text);
|
||||
}
|
||||
|
||||
make_renderinfo_string(rs, rj->scene, rr->text);
|
||||
RE_ReleaseResult(rj->re);
|
||||
|
||||
/* make jobs timer to send notifier */
|
||||
|
Reference in New Issue
Block a user