Fix memory leak in panel category update

This commit is contained in:
Kévin Dietrich 2016-02-24 05:48:33 +11:00 committed by Campbell Barton
parent b54b4eee3b
commit 48d399a321
1 changed files with 1 additions and 0 deletions

View File

@ -1473,6 +1473,7 @@ void UI_panel_category_active_set(ARegion *ar, const char *idname)
pc_act_next = pc_act->next;
if (!BLI_findstring(&ar->type->paneltypes, pc_act->idname, offsetof(PanelType, category))) {
BLI_remlink(lb, pc_act);
MEM_freeN(pc_act);
}
}
}