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:
Julian Eisel
2024-07-09 10:57:06 +02:00
parent 6bbffc6b69
commit d4ae97fc3d

View File

@@ -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));