aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/frameout.h
diff options
context:
space:
mode:
authorColin Snover2017-09-18 22:13:44 -0500
committerColin Snover2017-09-19 19:54:30 -0500
commitd363234129484733c55f961215bcb1343d84392e (patch)
tree280274f3b4d0f9caa2b9b04c94e14f8110567e18 /engines/sci/graphics/frameout.h
parenteba9526fdda389d3f82ccd01a845e6e3aed42799 (diff)
downloadscummvm-rg350-d363234129484733c55f961215bcb1343d84392e.tar.gz
scummvm-rg350-d363234129484733c55f961215bcb1343d84392e.tar.bz2
scummvm-rg350-d363234129484733c55f961215bcb1343d84392e.zip
SCI32: Fix GfxFrameout::addPlane from causing possible leaks
Diffstat (limited to 'engines/sci/graphics/frameout.h')
-rw-r--r--engines/sci/graphics/frameout.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sci/graphics/frameout.h b/engines/sci/graphics/frameout.h
index ddaa17ca3d..cd48c78fdd 100644
--- a/engines/sci/graphics/frameout.h
+++ b/engines/sci/graphics/frameout.h
@@ -120,15 +120,13 @@ private:
public:
/**
- * Creates and adds a new plane to the plane list, or
- * cancels deletion and updates an already-existing
- * plane if a plane matching the given plane VM object
- * already exists within the current plane list.
+ * Creates and adds a new plane to the plane list. Ownership of the passed
+ * object is transferred to GfxFrameout.
*
* @note This method is on Screen in SCI engine, but it
* is only ever called on `GraphicsMgr.screen`.
*/
- void addPlane(Plane &plane);
+ void addPlane(Plane *plane);
/**
* Deletes a plane within the current plane list.