[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[618] trunk/FuseGenerator
Brought to you by:
fredm
From: <fr...@us...> - 2009-09-04 22:50:23
|
Revision: 618 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=618&view=rev Author: fredm Date: 2009-09-04 22:50:16 +0000 (Fri, 04 Sep 2009) Log Message: ----------- Plug some memory gaps. Modified Paths: -------------- trunk/FuseGenerator/GeneratePreviewForURL.m trunk/FuseGenerator/GenerateThumbnailForURL.m trunk/FuseGenerator/JWSpectrumScreen/AttributeManager.c trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m Modified: trunk/FuseGenerator/GeneratePreviewForURL.m =================================================================== --- trunk/FuseGenerator/GeneratePreviewForURL.m 2009-08-31 13:19:09 UTC (rev 617) +++ trunk/FuseGenerator/GeneratePreviewForURL.m 2009-09-04 22:50:16 UTC (rev 618) @@ -89,6 +89,8 @@ QLPreviewRequestFlushContext(preview, cgContext); CFRelease(cgContext); } + + [imageRep release]; } break; case TYPE_IMAGEIO: Modified: trunk/FuseGenerator/GenerateThumbnailForURL.m =================================================================== --- trunk/FuseGenerator/GenerateThumbnailForURL.m 2009-08-31 13:19:09 UTC (rev 617) +++ trunk/FuseGenerator/GenerateThumbnailForURL.m 2009-09-04 22:50:16 UTC (rev 618) @@ -81,6 +81,8 @@ QLThumbnailRequestFlushContext( thumbnail, cgContext ); CFRelease( cgContext ); } + + [imageRep release]; } break; case TYPE_IMAGEIO: Modified: trunk/FuseGenerator/JWSpectrumScreen/AttributeManager.c =================================================================== --- trunk/FuseGenerator/JWSpectrumScreen/AttributeManager.c 2009-08-31 13:19:09 UTC (rev 617) +++ trunk/FuseGenerator/JWSpectrumScreen/AttributeManager.c 2009-09-04 22:50:16 UTC (rev 618) @@ -9,7 +9,6 @@ #include <assert.h> #include <string.h> -#include <ppc_intrinsics.h> #include "AttributeManager.h" #include "Colourmacros.h" Modified: trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m =================================================================== --- trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m 2009-08-31 13:19:09 UTC (rev 617) +++ trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m 2009-09-04 22:50:16 UTC (rev 618) @@ -167,7 +167,7 @@ - (NSBitmapImageRep*)imageRep { - NSBitmapImageRep* imageRep = [[[NSBitmapImageRep alloc] initWithBitmapDataPlanes:0 + NSBitmapImageRep* imageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:0 pixelsWide:canvasSize.width pixelsHigh:canvasSize.height bitsPerSample:8 @@ -176,7 +176,7 @@ isPlanar:NO colorSpaceName:NSDeviceRGBColorSpace bytesPerRow:canvasSize.width * 3 - bitsPerPixel:24] autorelease]; + bitsPerPixel:24]; if(imageRep) { unsigned char* imageBytes = [imageRep bitmapData]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |