diff options
author | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-11-10 09:49:13 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-11-10 09:49:13 +0100 |
commit | 7dda9309f91a71b9b3e2088f11bc322e3c15d669 (patch) | |
tree | 386dffec57cc0d7b712889a980c4aa5038bb7fbd /editor/editor_resource_preview.cpp | |
parent | 4569f5ec82964e0abe543337c9537e0af9164c11 (diff) | |
download | redot-engine-7dda9309f91a71b9b3e2088f11bc322e3c15d669.tar.gz |
Memory leak and crash fixes
Diffstat (limited to 'editor/editor_resource_preview.cpp')
-rw-r--r-- | editor/editor_resource_preview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_resource_preview.cpp b/editor/editor_resource_preview.cpp index 55f9347045..e383dadfb0 100644 --- a/editor/editor_resource_preview.cpp +++ b/editor/editor_resource_preview.cpp @@ -207,6 +207,7 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref< f->store_line(itos(has_small_texture)); f->store_line(itos(FileAccess::get_modified_time(p_item.path))); f->store_line(FileAccess::get_md5(p_item.path)); + f->close(); memdelete(f); } } |