From 8b0ae7983c055413dc4eb36cfa691ddfd5bb054e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 24 Dec 2007 10:10:21 +0000 Subject: Change 3 remaining free() to delete, which were not changed with commit #29841 (part of patch #1848173) svn-id: r29972 --- engines/cine/object.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/cine/object.cpp') diff --git a/engines/cine/object.cpp b/engines/cine/object.cpp index bd27dca8aa..23d00e7e16 100644 --- a/engines/cine/object.cpp +++ b/engines/cine/object.cpp @@ -45,7 +45,7 @@ void unloadAllMasks(void) { while (current) { overlayHeadElement *next = current->next; - free(current); + delete current; current = next; } @@ -124,7 +124,7 @@ int8 removeOverlayElement(uint16 objIdx, uint16 param) { tempPtr2->previous = currentHeadPtr->previous; - free(currentHeadPtr); + delete currentHeadPtr; return 0; } @@ -151,7 +151,7 @@ int16 freeOverlay(uint16 objIdx, uint16 param) { tempPtr2->previous = currentHeadPtr->previous; - free(currentHeadPtr); + delete currentHeadPtr; return 0; } -- cgit v1.2.3