aboutsummaryrefslogtreecommitdiff
path: root/src/osx/graphics/quartz/Image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/graphics/quartz/Image.cpp')
-rw-r--r--src/osx/graphics/quartz/Image.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osx/graphics/quartz/Image.cpp b/src/osx/graphics/quartz/Image.cpp
index feddad8c..28087000 100644
--- a/src/osx/graphics/quartz/Image.cpp
+++ b/src/osx/graphics/quartz/Image.cpp
@@ -11,7 +11,9 @@ QuartzImage::QuartzImage(IGraphicsFactory* graphics_factory,
image_factory_(image_factory),
image_(image),
auto_release_(auto_release),
- buffer_(buffer) {}
+ buffer_(buffer) {
+ Expects(image);
+}
QuartzImage::~QuartzImage() {
if (auto_release_) {