Replace all localization SDL_free with VVV_free

This mirrors a926ce9851 upstream, which
replaces all other SDL_free calls.
This commit is contained in:
Dav999-v
2022-12-31 04:37:45 +01:00
committed by Misa Elizabeth Kai
parent 7a52dc9586
commit 2b84384606
4 changed files with 18 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
#include <tinyxml2.h>
#include "Alloc.h"
#include "FileSystemUtils.h"
#include "Graphics.h"
#include "Script.h"
@@ -110,7 +111,7 @@ static void sync_lang_file(const std::string& langcode)
eng_prefixed,
map_lookup_text(map_translation, eng, "")
);
SDL_free(eng_prefixed);
VVV_free(eng_prefixed);
}
pElem->SetAttribute("translation", tra);
@@ -156,7 +157,7 @@ static void sync_lang_file(const std::string& langcode)
subElem->SetAttribute("translation", map_lookup_text(map_translation_plural, key, ""));
SDL_free(key);
VVV_free(key);
}
}
}
@@ -209,7 +210,7 @@ static void sync_lang_file(const std::string& langcode)
found = hashmap_get(cutscene_map, (void*) eng_prefixed, alloc_len-1, &ptr_format);
const TextboxFormat* format = (TextboxFormat*) ptr_format;
SDL_free(eng_prefixed);
VVV_free(eng_prefixed);
if (!found || format == NULL)
{