summaryrefslogtreecommitdiff
path: root/plugins/QuickReplies
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/QuickReplies')
-rw-r--r--plugins/QuickReplies/src/events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/QuickReplies/src/events.cpp b/plugins/QuickReplies/src/events.cpp
index 5335379dd1..23ec25f537 100644
--- a/plugins/QuickReplies/src/events.cpp
+++ b/plugins/QuickReplies/src/events.cpp
@@ -97,8 +97,8 @@ int OnButtonPressed(WPARAM wParam, LPARAM lParam)
}
}
- for (int i = 0; i < replyList.getCount(); i++)
- mir_free(replyList[i]);
+ for (auto &it : replyList)
+ mir_free(it);
replyList.destroy();
return 1;