浏览代码

[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.
Mario Zechner 4 年之前
父节点
当前提交
34b355eabd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spine-cpp/spine-cpp/include/spine/RTTI.h

+ 2 - 2
spine-cpp/spine-cpp/include/spine/RTTI.h

@@ -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);