Fix (unreported) yet another MEM_new/MEM_freeN mismatch...

This commit is contained in:
Bastien Montagne
2024-07-08 13:46:53 +02:00
parent 9f90594db7
commit 5270d72426

View File

@@ -320,7 +320,7 @@ static void panel_list_copy(ListBase *newlb, const ListBase *lb)
BLI_listbase_clear(&new_panel->layout_panel_states);
LISTBASE_FOREACH (LayoutPanelState *, src_state, &old_panel->layout_panel_states) {
LayoutPanelState *new_state = MEM_new<LayoutPanelState>(__func__, *src_state);
LayoutPanelState *new_state = MEM_cnew<LayoutPanelState>(__func__, *src_state);
new_state->idname = BLI_strdup(src_state->idname);
BLI_addtail(&new_panel->layout_panel_states, new_state);
}