aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/teenagent/detection.cpp')
-rw-r--r--engines/teenagent/detection.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/teenagent/detection.cpp b/engines/teenagent/detection.cpp
index 72a338664b..fa5a578636 100644
--- a/engines/teenagent/detection.cpp
+++ b/engines/teenagent/detection.cpp
@@ -177,9 +177,8 @@ public:
ssd.setDeletableFlag(true);
//checking for the thumbnail
- Common::ScopedPtr<Graphics::Surface> thumb(new Graphics::Surface);
- if (Graphics::loadThumbnail(*in, *thumb))
- ssd.setThumbnail(thumb.release());
+ if (Graphics::Surface *const thumb = Graphics::loadThumbnail(*in))
+ ssd.setThumbnail(thumb);
return ssd;
}