clone2727/scummvm — comment on commit 1486880054ca62b1cea9f4802299bf4f249a959c
File: graphics/decoders/image_decoder.h line 61
By clone2727:

That is purposely done: I intended ImageDecoder to maintain ownership of
the Surface. This is mirrored after the VideoDecoder way of handling its
Surface.