Fixed memory leak

This commit is contained in:
Micke Prag 2012-01-31 16:29:48 +01:00
parent a740591380
commit 9f24d01e43

View file

@ -102,8 +102,8 @@ int Settings::getDeviceId(int intDeviceIndex) const {
CFStringGetCString( cfid, cp, size, kCFStringEncodingUTF8 );
cp = (char *)realloc( cp, strlen(cp) + 1);
id = atoi(cp);
free(cp);
CFRelease(key);
CFRelease(split);
CFRelease(cfid);