From 2cc7a8184627415129f37eba02ad66f04cc4b20e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 26 May 2014 08:53:03 +0300 Subject: FULLPIPE: Implement MovGraphItem::free() --- engines/fullpipe/motion.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 9f34c8fab8..79bb02638c 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -516,7 +516,14 @@ MovGraphItem::MovGraphItem() { } void MovGraphItem::free() { - warning("STUB: MovGraphItem::free()"); + for (uint i = 0; i < movitems->size(); i++) { + (*movitems)[i]->movarr->_movSteps.clear(); + delete (*movitems)[i]->movarr; + } + + delete movitems; + + movitems = 0; } int MovGraph_messageHandler(ExCommand *cmd); -- cgit v1.2.3