Quicktime Carbon: Fix memory leak when build with cocoa
[blender.git] / source / blender / quicktime / SConscript
index 549b3cffe5a27d5b20a4dc67fece03b34db59d93..c8cd795decbaf10c487a45327f8858f21ef56cae 100644 (file)
@@ -30,4 +30,9 @@ incs.append(env['BF_QUICKTIME_INC'])
 types = ['core','player']
 priorities = [200,235]
 
-env.BlenderLib ('bf_quicktime', sources=source_files, includes=incs, defines=['WITH_QUICKTIME'], libtype=types, priority=priorities)
+defs=['WITH_QUICKTIME']
+
+if env['WITH_GHOST_COCOA']:
+       defs.append('GHOST_COCOA')
+
+env.BlenderLib ('bf_quicktime', sources=source_files, includes=incs, defines=defs, libtype=types, priority=priorities)