forked from bartvdbraak/blender
fix fox AddonPreferences not getting registered automatically and leak when removing the addon (wasnt freeing ID-props).
This commit is contained in:
parent
9f2e845181
commit
3475f5137a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user