fix fox AddonPreferences not getting registered automatically and leak when removing the addon (wasnt freeing ID-props).
This commit is contained in:
@@ -612,6 +612,10 @@ class KeyingSetInfo(StructRNA, metaclass=RNAMeta):
|
|||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
|
class AddonPreferences(StructRNA, metaclass=RNAMeta):
|
||||||
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
class _GenericUI:
|
class _GenericUI:
|
||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|
||||||
|
@@ -325,6 +325,11 @@ static void rna_userdef_addon_remove(ReportList *reports, PointerRNA *bext_ptr)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bext->prop) {
|
||||||
|
IDP_FreeProperty(bext->prop);
|
||||||
|
MEM_freeN(bext->prop);
|
||||||
|
}
|
||||||
|
|
||||||
BLI_freelinkN(&U.addons, bext);
|
BLI_freelinkN(&U.addons, bext);
|
||||||
RNA_POINTER_INVALIDATE(bext_ptr);
|
RNA_POINTER_INVALIDATE(bext_ptr);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user