fix fox AddonPreferences not getting registered automatically and leak when removing the addon (wasnt freeing ID-props).

This commit is contained in:
Campbell Barton 2013-01-14 10:36:43 +00:00
parent 9f2e845181
commit 3475f5137a
2 changed files with 9 additions and 0 deletions

@ -612,6 +612,10 @@ class KeyingSetInfo(StructRNA, metaclass=RNAMeta):
__slots__ = ()
class AddonPreferences(StructRNA, metaclass=RNAMeta):
__slots__ = ()
class _GenericUI:
__slots__ = ()

@ -325,6 +325,11 @@ static void rna_userdef_addon_remove(ReportList *reports, PointerRNA *bext_ptr)
return;
}
if (bext->prop) {
IDP_FreeProperty(bext->prop);
MEM_freeN(bext->prop);
}
BLI_freelinkN(&U.addons, bext);
RNA_POINTER_INVALIDATE(bext_ptr);
}