浏览代码

Fix life cycle of ResourceImporterTexture not tracked properly

Pedro J. Estébanez 2 年之前
父节点
当前提交
79c798fa0b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/import/resource_importer_texture.cpp

+ 1 - 0
editor/import/resource_importer_texture.cpp

@@ -797,4 +797,5 @@ ResourceImporterTexture::ResourceImporterTexture() {
 }
 
 ResourceImporterTexture::~ResourceImporterTexture() {
+	singleton = nullptr;
 }