1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Fix crash when exporting projects with shared libraries

(cherry picked from commit 680bcef825)
This commit is contained in:
Haoyu Qiu
2022-03-23 13:53:32 +08:00
committed by Rémi Verschelde
parent 113102aa51
commit 50ba2d3051
3 changed files with 9 additions and 2 deletions

View File

@@ -145,6 +145,10 @@ struct DirAccessRef {
operator bool() const { return f != nullptr; }
DirAccess *f;
DirAccessRef(DirAccess *fa) { f = fa; }
DirAccessRef(DirAccessRef &&other) {
f = other.f;
other.f = nullptr;
}
~DirAccessRef() {
if (f) {
memdelete(f);