Fix new/free mismatch for context copying
Would crash when displaying the Current File asset library in the asset browser.
This commit is contained in:
@@ -113,7 +113,7 @@ bContext *CTX_create()
|
||||
|
||||
bContext *CTX_copy(const bContext *C)
|
||||
{
|
||||
bContext *newC = MEM_new<bContext>(__func__);
|
||||
bContext *newC = MEM_cnew<bContext>(__func__);
|
||||
*newC = *C;
|
||||
|
||||
memset(&newC->wm.operator_poll_msg_dyn_params, 0, sizeof(newC->wm.operator_poll_msg_dyn_params));
|
||||
|
||||
Reference in New Issue
Block a user