mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +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
|
||||
#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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user