From 2308356ddb3a8edbaebef5d24ca94ee919ffe9af Mon Sep 17 00:00:00 2001 From: joris <joris.dauphin@gmail.com> Date: Mon, 13 Feb 2012 12:41:37 +0100 Subject: [PATCH] Use delete with new instead of free. --- src/video/cursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cursor.cpp b/src/video/cursor.cpp index e42931e8c..4a476f07c 100644 --- a/src/video/cursor.cpp +++ b/src/video/cursor.cpp @@ -378,7 +378,7 @@ void CleanCursors() { for (std::vector<CCursor*>::iterator i = AllCursors.begin(); i != AllCursors.end(); ++i) { CGraphic::Free((**i).G); - free(*i); + delete *i; } AllCursors.clear();