Skip to content

Commit

Permalink
Fix for thread release memory leak bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gallagher committed Aug 24, 2010
1 parent 0589e0d commit 9215fe1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Classes/AudioStreamer.m
Expand Up @@ -863,8 +863,8 @@ - (void)startInternal
packetBufferSize = 0;
self.state = AS_INITIALIZED;

internalThread = nil;
[internalThread release];
internalThread = nil;
}

[pool release];
Expand Down Expand Up @@ -1159,7 +1159,7 @@ - (void)stop
}

//
// handleReadFromStream:eventType:data:
// handleReadFromStream:eventType:
//
// Reads data from the network file stream into the AudioFileStream
//
Expand Down
6 changes: 4 additions & 2 deletions Classes/iPhoneStreamingPlayerAppDelegate.m
Expand Up @@ -20,9 +20,11 @@ @implementation iPhoneStreamingPlayerAppDelegate
@synthesize window;
@synthesize viewController;

- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSDictionary *credentialStorage =
[[NSURLCredentialStorage sharedCredentialStorage] allCredentials];
NSLog(@"Credentials: %@", credentialStorage);

- (void)applicationDidFinishLaunching:(UIApplication *)application {

// Override point for customization after app launch
[window addSubview:viewController.view];
[window makeKeyAndVisible];
Expand Down
3 changes: 2 additions & 1 deletion iPhoneStreamingPlayer.xcodeproj/project.pbxproj
Expand Up @@ -219,6 +219,7 @@
GCC_PREFIX_HEADER = iPhoneStreamingPlayer_Prefix.pch;
INFOPLIST_FILE = iPhoneInfo.plist;
PRODUCT_NAME = iPhoneStreamingPlayer;
SDKROOT = iphoneos4.0;
};
name = Debug;
};
Expand Down Expand Up @@ -258,7 +259,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = iphoneos3.0;
SDKROOT = iphoneos4.0;
};
name = Release;
};
Expand Down
1 change: 0 additions & 1 deletion main.m
Expand Up @@ -19,7 +19,6 @@
#endif

int main(int argc, const char *argv[]) {

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
#ifdef TARGET_OS_IPHONE
int retVal = UIApplicationMain(argc, (char **)argv, nil, nil);
Expand Down

0 comments on commit 9215fe1

Please sign in to comment.