mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
[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:
parent
6d384cd75c
commit
34b355eabd
@ -30,10 +30,10 @@
|
|||||||
#ifndef Spine_RTTI_h
|
#ifndef Spine_RTTI_h
|
||||||
#define Spine_RTTI_h
|
#define Spine_RTTI_h
|
||||||
|
|
||||||
#include <spine/SpineObject.h>
|
#include <spine/dll.h>
|
||||||
|
|
||||||
namespace spine {
|
namespace spine {
|
||||||
class SP_API RTTI : public SpineObject {
|
class SP_API RTTI {
|
||||||
public:
|
public:
|
||||||
explicit RTTI(const char *className);
|
explicit RTTI(const char *className);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user