소스 검색

Merge pull request #998 from asmaloney/fix-virtual-destructor

"Wrapped" has virtual functions so it should have a virtual destructor.
Fabio Alessandrelli 2 년 전
부모
커밋
2eb375e486
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      include/godot_cpp/classes/wrapped.hpp

+ 1 - 0
include/godot_cpp/classes/wrapped.hpp

@@ -77,6 +77,7 @@ protected:
 
 	Wrapped(const StringName p_godot_class);
 	Wrapped(GodotObject *p_godot_object);
+	virtual ~Wrapped() {}
 
 public:
 	static StringName &get_class_static() {