Fix crash when exporting projects with shared libraries

This commit is contained in:
Haoyu Qiu
2022-03-23 13:53:32 +08:00
parent 3586f559d1
commit 680bcef825
3 changed files with 8 additions and 1 deletions
+4
View File
@@ -188,6 +188,10 @@ struct FileAccessRef {
operator FileAccess *() { return f; }
FileAccessRef(FileAccess *fa) { f = fa; }
FileAccessRef(FileAccessRef &&other) {
f = other.f;
other.f = nullptr;
}
~FileAccessRef() {
if (f) {
memdelete(f);