[cpp] RTTI should not inherit from SpineObject, closes #1870

Depending on the destruction order of static RTTI instances and SpineExtension instances, we'd call SpineExtension::beforeFree in ~RTTI, when SpineExtension has already been destructed.
This commit is contained in:
Mario Zechner 2021-06-14 15:12:56 +02:00
parent 6d384cd75c
commit 34b355eabd

View File

@ -30,10 +30,10 @@
#ifndef Spine_RTTI_h
#define Spine_RTTI_h
#include <spine/SpineObject.h>
#include <spine/dll.h>
namespace spine {
class SP_API RTTI : public SpineObject {
class SP_API RTTI {
public:
explicit RTTI(const char *className);