forked from bartvdbraak/blender
Follow-up to rBcc1372546ad5: Fix for segmentation fault in pipeline (freestyle/wm related).
Render->freestyle_bmain is set to NULL after BKE_main_free() so that the struct Main is not considered for tagging any longer.
This commit is contained in:
parent
fedbb88825
commit
3f1ed437c1
@ -2010,13 +2010,14 @@ static void free_all_freestyle_renders(void)
|
|||||||
}
|
}
|
||||||
BLI_freelistN(&re1->freestyle_renders);
|
BLI_freelistN(&re1->freestyle_renders);
|
||||||
|
|
||||||
/* detach the window manager from freestyle bmain (see comments in
|
|
||||||
* add_freestyle() for more detail)
|
|
||||||
*/
|
|
||||||
if (re1->freestyle_bmain) {
|
if (re1->freestyle_bmain) {
|
||||||
|
/* detach the window manager from freestyle bmain (see comments
|
||||||
|
* in add_freestyle() for more detail)
|
||||||
|
*/
|
||||||
re1->freestyle_bmain->wm.first = re1->freestyle_bmain->wm.last = NULL;
|
re1->freestyle_bmain->wm.first = re1->freestyle_bmain->wm.last = NULL;
|
||||||
|
|
||||||
BKE_main_free(re1->freestyle_bmain);
|
BKE_main_free(re1->freestyle_bmain);
|
||||||
|
re1->freestyle_bmain = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user