mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
potentially fixed an intermittent heap corruption
This commit is contained in:
@@ -40,6 +40,7 @@ static const NSString* PORT = @"47984";
|
|||||||
// Check root status_code
|
// Check root status_code
|
||||||
if (![HttpManager verifyStatus: rootNode]) {
|
if (![HttpManager verifyStatus: rootNode]) {
|
||||||
NSLog(@"ERROR: Request returned with failure status");
|
NSLog(@"ERROR: Request returned with failure status");
|
||||||
|
xmlFreeDoc(docPtr);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,8 +81,8 @@ static const NSString* PORT = @"47984";
|
|||||||
}
|
}
|
||||||
node = node->next;
|
node = node->next;
|
||||||
}
|
}
|
||||||
xmlFree(rootNode);
|
|
||||||
xmlFree(docPtr);
|
xmlFreeDoc(docPtr);
|
||||||
|
|
||||||
return appList;
|
return appList;
|
||||||
}
|
}
|
||||||
@@ -98,8 +99,8 @@ static const NSString* PORT = @"47984";
|
|||||||
xmlNodePtr rootNode = xmlDocGetRootElement(docPtr);
|
xmlNodePtr rootNode = xmlDocGetRootElement(docPtr);
|
||||||
|
|
||||||
string = [HttpManager getStatusMessage: rootNode];
|
string = [HttpManager getStatusMessage: rootNode];
|
||||||
xmlFree(rootNode);
|
|
||||||
xmlFree(docPtr);
|
xmlFreeDoc(docPtr);
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
@@ -118,6 +119,7 @@ static const NSString* PORT = @"47984";
|
|||||||
// Check root status_code
|
// Check root status_code
|
||||||
if (![HttpManager verifyStatus: rootNode]) {
|
if (![HttpManager verifyStatus: rootNode]) {
|
||||||
NSLog(@"ERROR: Request returned with failure status");
|
NSLog(@"ERROR: Request returned with failure status");
|
||||||
|
xmlFreeDoc(docPtr);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,8 +136,8 @@ static const NSString* PORT = @"47984";
|
|||||||
node = node->next;
|
node = node->next;
|
||||||
}
|
}
|
||||||
//NSLog(@"xmlValue: %@", value);
|
//NSLog(@"xmlValue: %@", value);
|
||||||
xmlFree(rootNode);
|
|
||||||
xmlFree(docPtr);
|
xmlFreeDoc(docPtr);
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user