diff options
Diffstat (limited to 'src/mir_core/src/langpack.cpp')
-rw-r--r-- | src/mir_core/src/langpack.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mir_core/src/langpack.cpp b/src/mir_core/src/langpack.cpp index 83885656fa..3fdd9f6d3d 100644 --- a/src/mir_core/src/langpack.cpp +++ b/src/mir_core/src/langpack.cpp @@ -720,13 +720,12 @@ void UnloadLangPackModule() {
if (!bModuleInitialized) return;
- int i;
- for (i = 0; i < lMuuids.getCount(); i++)
- mir_free(lMuuids[i]);
+ for (auto &it : lMuuids)
+ mir_free(it);
lMuuids.destroy();
LangPackEntry *p = g_pEntries;
- for (i = 0; i < g_entryCount; i++, p++) {
+ for (int i = 0; i < g_entryCount; i++, p++) {
if (p->pNext != nullptr) {
for (LangPackEntry *p1 = p->pNext; p1 != nullptr;) {
LangPackEntry *p2 = p1; p1 = p1->pNext;
|