Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-04-18 06:03:19 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-04-18 06:03:19 +0400
commitdfe2f8dc03267e041102837e92f547fb04881510 (patch)
treed9582c4667ce5b9e39e2adce40832aa4f44b4fe7 /source/blender/quicktime/apple/qtkit_import.m
parentd7e08f2d33207fdf76b1b597ef0de9dec26e3987 (diff)
parent00e46ef739cf2bfddb8805af056aa59fd3b3c71c (diff)
Merged changes in the trunk up to revision 28247.
Diffstat (limited to 'source/blender/quicktime/apple/qtkit_import.m')
-rw-r--r--source/blender/quicktime/apple/qtkit_import.m9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/quicktime/apple/qtkit_import.m b/source/blender/quicktime/apple/qtkit_import.m
index 43c17644681..322f2757419 100644
--- a/source/blender/quicktime/apple/qtkit_import.m
+++ b/source/blender/quicktime/apple/qtkit_import.m
@@ -198,7 +198,6 @@ static ImBuf * nsImageToiBuf(NSImage *sourceImage, int width, int height)
rasterRGB = (uchar*)[blBitmapFormatImageRGB bitmapData];
if (rasterRGB == NULL) {
- [bitmapImage release];
[blBitmapFormatImageRGB release];
return NULL;
}
@@ -220,7 +219,6 @@ static ImBuf * nsImageToiBuf(NSImage *sourceImage, int width, int height)
rasterRGBA = (uchar*)[blBitmapFormatImageRGBA bitmapData];
if (rasterRGBA == NULL) {
- [bitmapImage release];
[blBitmapFormatImageRGB release];
[blBitmapFormatImageRGBA release];
return NULL;
@@ -390,13 +388,14 @@ int imb_is_a_quicktime (char *name)
BLI_testextensie(name, ".mp3")) return 0;
- image = [NSImage alloc];
- if ([image initWithContentsOfFile:[NSString stringWithUTF8String:name]])
+ image = [[NSImage alloc] initWithContentsOfFile:[NSString stringWithUTF8String:name]];
+ if (image) {
+ [image release];
result = true;
+ }
else
result = false;
- [image release];
[pool drain];
return result;
}