summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/imageutils-macosx.cc7
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);
contact: Jan Huwald // Impressum