diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-10 15:23:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-10 15:23:26 +0200 |
commit | ee86b18a5e4fecbb50960652da4b8e2e20912226 (patch) | |
tree | e297a2d844f55e8b529c22bce6ebe06eda9f777c /platform/uwp/export/export.cpp | |
parent | 7f3c2e7b0c722c8cef026a7a15ed9296c3c22407 (diff) | |
parent | 53c0a29fb05343e979fda7faf4fde35020e0fefe (diff) |
Merge pull request #29497 from qarmin/fix_memory_leak_in_files
Fix memory leak after closing files
Diffstat (limited to 'platform/uwp/export/export.cpp')
-rw-r--r-- | platform/uwp/export/export.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/platform/uwp/export/export.cpp b/platform/uwp/export/export.cpp index cdcad33f6d..ec43a4c26f 100644 --- a/platform/uwp/export/export.cpp +++ b/platform/uwp/export/export.cpp @@ -241,7 +241,6 @@ void AppxPackager::make_block_map() { tmp_file->close(); memdelete(tmp_file); - tmp_file = NULL; } String AppxPackager::content_type(String p_extension) { @@ -291,7 +290,6 @@ void AppxPackager::make_content_types() { tmp_file->close(); memdelete(tmp_file); - tmp_file = NULL; } Vector<uint8_t> AppxPackager::make_file_header(FileMeta p_file_meta) { @@ -606,7 +604,6 @@ void AppxPackager::finish() { blockmap_file->close(); memdelete(blockmap_file); - blockmap_file = NULL; // Add content types EditorNode::progress_task_step("export", "Setting content types...", 5); @@ -622,7 +619,6 @@ void AppxPackager::finish() { types_file->close(); memdelete(types_file); - types_file = NULL; // Pre-process central directory before signing for (int i = 0; i < file_metadata.size(); i++) { |