Cleanup.
This commit is contained in:
@@ -43,7 +43,7 @@ void DarwinMCHelpers::Stop()
|
|||||||
|
|
||||||
[nc removeObserver:g_MCH];
|
[nc removeObserver:g_MCH];
|
||||||
[g_MCH release];
|
[g_MCH release];
|
||||||
|
g_MCH = nil;
|
||||||
[pool release];
|
[pool release];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,7 +62,6 @@ void DarwinMCHelpers::GetRemovableDevicePaths( vector<CString>& vDevicePaths )
|
|||||||
NSEnumerator *i = [paths objectEnumerator];
|
NSEnumerator *i = [paths objectEnumerator];
|
||||||
NSString *path;
|
NSString *path;
|
||||||
|
|
||||||
vDevicePaths.clear();
|
|
||||||
while( (path = [i nextObject]) )
|
while( (path = [i nextObject]) )
|
||||||
vDevicePaths.push_back( [path UTF8String] );
|
vDevicePaths.push_back( [path UTF8String] );
|
||||||
[pool release];
|
[pool release];
|
||||||
|
|||||||
Reference in New Issue
Block a user