Commits

Anonymous committed 002b7a5

Fix memory leak caught by static analyzer

  • Participants
  • Parent commits 3adbba9

Comments (0)

Files changed (1)

File lib/DDAudioUnit.m

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