cocoa: Fix a very minor memory leak in DisplayInformation
This commit is contained in:
parent
e2fb2d1241
commit
756fe2e72b
|
|
@ -160,7 +160,7 @@ load_display_information() {
|
|||
|
||||
// Get processor information
|
||||
const NXArchInfo *ainfo = NXGetLocalArchInfo();
|
||||
_display_information->_cpu_brand_string = strdup(ainfo->description);
|
||||
_display_information->_cpu_brand_string.assign(ainfo->description);
|
||||
|
||||
// Get version of Mac OS X
|
||||
SInt32 major, minor, bugfix;
|
||||
|
|
|
|||
Loading…
Reference in New Issue