summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/modplus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/modplus.cpp')
-rw-r--r--plugins/TabSRMM/src/modplus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp
index 084ffc39e6..35341a6d60 100644
--- a/plugins/TabSRMM/src/modplus.cpp
+++ b/plugins/TabSRMM/src/modplus.cpp
@@ -102,8 +102,8 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam)
pwszFormatedText.Format(arMenuLines[res-1], pszText);
}
- for (int i = 0; i < arMenuLines.getCount(); i++)
- mir_free(arMenuLines[i]);
+ for (auto &it : arMenuLines)
+ mir_free(it);
}
}
else if (textlenght) {