summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-21 10:59:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-21 10:59:30 +0000
commit27f193cad956ff5238a6abbe2bed797b971a9ffa (patch)
tree4b0bd5ad34feab6462e3678d464fd7141dd24869 /src
parent9be4120a7e4210fc4f1809e9eacbfeb831c69890 (diff)
fix for the dynamic option pages' unloading
git-svn-id: http://svn.miranda-ng.org/main/trunk@1620 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/options/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp
index c76fdd6bfd..1c3c87ad9e 100644
--- a/src/modules/options/options.cpp
+++ b/src/modules/options/options.cpp
@@ -636,7 +636,7 @@ static void UnloadOptionsModule(HWND hdlg, OptionsDlgData *dat, HINSTANCE hInst)
{
bool bToRebuildTree = false;
- for (int i=0; i < dat->arOpd.getCount(); i++) {
+ for (int i=dat->arOpd.getCount()-1; i >= 0; i--) {
OptionsPageData* opd = dat->arOpd[i];
if (opd->hInst != hInst)
continue;