aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/XPM.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/XPM.h')
-rw-r--r--src/XPM.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XPM.h b/src/XPM.h
index 789485eb0..cd78b14c0 100644
--- a/src/XPM.h
+++ b/src/XPM.h
@@ -68,7 +68,7 @@ public:
* A collection of RGBAImage pixmaps indexed by integer id.
*/
class RGBAImageSet {
- typedef std::map<int, RGBAImage*> ImageMap;
+ typedef std::map<int, std::unique_ptr<RGBAImage>> ImageMap;
ImageMap images;
mutable int height; ///< Memorize largest height of the set.
mutable int width; ///< Memorize largest width of the set.