Commits

Anonymous committed 002b7a5

Fix memory leak caught by static analyzer

Comments (0)

Files changed (1)

lib/DDAudioUnit.m

         const AUPreset * preset = CFArrayGetValueAtIndex(factoryPresets, i);
         DDAudioUnitPreset * objcPreset = [[DDAudioUnitPreset alloc] initWithAUPreset: *preset];
         [mFactoryPresets addObject: objcPreset];
+        [objcPreset release];
     }
     CFRelease(factoryPresets);
 }