Glitter: Fixed crash when trying to access freed memory

This commit is contained in:
korenkonder
2024-12-23 02:37:15 +03:00
parent b97b07b91a
commit f36d0313f1
3 changed files with 23 additions and 9 deletions
+2 -3
View File
@@ -224,9 +224,8 @@ void texture_database::add(texture_database_file* tex_db_file) {
if (!tex_db_file || !tex_db_file->ready)
return;
texture.reserve(tex_db_file->texture.size());
std::vector< texture_info> texture_add;
std::vector<texture_info> texture_add;
texture_add.reserve(tex_db_file->texture.size());
for (texture_info_file& i : tex_db_file->texture) {
texture_info* info;