Copy instead of retaining strings.

This commit is contained in:
Damiano Galassi committed 2016-07-05 10:28:02 +02:00
1 parent 49d8af5ac7
commit 179bed19e4
2 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ extern NSString * const SBDolbyMixdown;
extern NSString * const SBDolbyPlIIMixdown; extern NSString * const SBDolbyPlIIMixdown;
// a struct to hold info for the data proc // a struct to hold info for the data proc
struct AudioFileIO static struct AudioFileIO
{ {
AudioConverterRef converter; AudioConverterRef converter;
AudioStreamBasicDescription inputFormat; AudioStreamBasicDescription inputFormat;
+8 -5
View File
@@ -120,11 +120,11 @@
copy->_sourceId = _sourceId; copy->_sourceId = _sourceId;
copy->_sourceURL = [_sourceURL retain]; copy->_sourceURL = [_sourceURL retain];
copy->_sourceFormat = [_sourceFormat retain]; copy->_sourceFormat = [_sourceFormat copy];
copy->_format = [_format retain]; copy->_format = [_format copy];
copy->_name = [_name retain]; copy->_name = [_name copy];
copy->_language = [_language retain]; copy->_language = [_language copy];
copy->_extendedLanguageTag = [_extendedLanguageTag retain]; copy->_extendedLanguageTag = [_extendedLanguageTag copy];
copy->_enabled = _enabled; copy->_enabled = _enabled;
copy->_alternate_group = _alternate_group; copy->_alternate_group = _alternate_group;
copy->_startOffset = _startOffset; copy->_startOffset = _startOffset;
@@ -456,6 +456,9 @@
[_name release]; [_name release];
[_language release]; [_language release];
[_extendedLanguageTag release]; [_extendedLanguageTag release];
[_mediaType release];
[_sourceFormat release];
[super dealloc]; [super dealloc];
} }