AssetManager: fix deleting no file (#1358)

This commit is contained in:
David Markowitz 2023-12-25 06:48:57 -08:00 committed by GitHub
parent d2d67384a7
commit ffa2f9986c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ struct AssetMemoryBuffer : std::streambuf {
}
~AssetMemoryBuffer() {
free(m_Base);
if (m_Success) free(m_Base);
}
pos_type seekpos(pos_type sp, std::ios_base::openmode which) override {