From 4e59ef5b6f75b04eb53f3dc7117dcaddf441f04e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 3 Jun 2012 21:34:24 +0000 Subject: lMuuids delenda est git-svn-id: http://svn.miranda-ng.org/main/trunk@292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/langpack/langpack.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/modules/langpack') diff --git a/src/modules/langpack/langpack.cpp b/src/modules/langpack/langpack.cpp index 01dd16365d..cec6511386 100644 --- a/src/modules/langpack/langpack.cpp +++ b/src/modules/langpack/langpack.cpp @@ -537,16 +537,14 @@ int LoadLangPackModule(void) return 0; } -void UnloadLangPackModule(bool bRemoveAll) +void UnloadLangPackModule() { if ( !bModuleInitialized ) return; int i; - if ( bRemoveAll ) { - for ( i=0; i < lMuuids.getCount(); i++ ) - mir_free( lMuuids[i] ); - lMuuids.destroy(); - } + for ( i=0; i < lMuuids.getCount(); i++ ) + mir_free( lMuuids[i] ); + lMuuids.destroy(); LangPackEntry* p = langPack.entry; for ( i=0; i < langPack.entryCount; i++, p++ ) { @@ -576,7 +574,7 @@ INT_PTR ReloadLangpack(WPARAM wParam, LPARAM lParam) if ( pszStr == NULL ) pszStr = langPack.filename; - UnloadLangPackModule(false); + UnloadLangPackModule(); LoadLangPack(pszStr); return 0; } -- cgit v1.2.3