Merge pull request #33516 from qarmin/small_fixes

Memory leaks and crash fixes
This commit is contained in:
Rémi Verschelde 2019-11-10 10:17:19 +01:00 committed by GitHub
commit 2143f46df2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 24 additions and 4 deletions

View file

@ -91,6 +91,8 @@ RES ResourceFormatPKM::load(const String &p_path, const String &p_original_path,
if (r_error)
*r_error = OK;
f->close();
memdelete(f);
return texture;
}

View file

@ -741,6 +741,8 @@ RES ResourceFormatLoaderTheora::load(const String &p_path, const String &p_origi
*r_error = OK;
}
f->close();
memdelete(f);
return ogv_stream;
}

View file

@ -484,6 +484,8 @@ RES ResourceFormatLoaderWebm::load(const String &p_path, const String &p_origina
*r_error = OK;
}
f->close();
memdelete(f);
return webm_stream;
}