diff --git a/GeoLib/Raster.h b/GeoLib/Raster.h
index c2b24c7b060a3f28f702a87bf1c4709f4c847620..6234c0395ff6cf5508120cac4bce8a42275d939b 100644
--- a/GeoLib/Raster.h
+++ b/GeoLib/Raster.h
@@ -154,7 +154,7 @@ private:
 struct NamedRaster
 {
     std::string raster_name;
-    GeoLib::Raster raster;
+    std::unique_ptr<GeoLib::Raster> raster;
 };
 
 }  // namespace GeoLib