diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-26 22:06:47 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-26 22:06:47 (GMT) |
commit | 7d8bc8e2b7301ff8f4a6cdebdea3460cb0054b1f (patch) | |
tree | 6a44d314c1044e9fa9faf39c31f70bfe3d082a7a /src/imageutils-macosx.cc | |
parent | d08ebbc6fcea423d6ff2d3be2099d8b34a6c8798 (diff) |
cleanup macosx code
Diffstat (limited to 'src/imageutils-macosx.cc')
-rw-r--r-- | src/imageutils-macosx.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/imageutils-macosx.cc b/src/imageutils-macosx.cc index 2fcdb93..9f33ea0 100644 --- a/src/imageutils-macosx.cc +++ b/src/imageutils-macosx.cc @@ -1,4 +1,5 @@ #include <ApplicationServices/ApplicationServices.h> +#include <iostream> #include <CGDataConsumer.h> #include "imageutils.h" #include <assert.h> @@ -86,10 +87,8 @@ bool write_png(std::ostream &output, unsigned char *pixels, int width, int heigh CFRelease(imageDest); CFRelease(dataconsumer); - if ( filename ) { - CFRelease(fileURL); - CFRelease(fname); - } + //CFRelease(fileURL); + //CFRelease(fname); CFRelease(imageProps); CGColorSpaceRelease(colorSpace); CGImageRelease(imageRef); |