diff --git a/src/osx/core/display.cpp b/src/osx/core/display.cpp index 3fee1fef44..94efef4217 100644 --- a/src/osx/core/display.cpp +++ b/src/osx/core/display.cpp @@ -178,7 +178,7 @@ wxDisplayImpl *wxDisplayFactoryMacOSX::CreateDisplay(unsigned n) CGDisplayCount theCount = GetCount(); wxScopedArray theIDs(theCount); - CGDisplayErr err = wxOSXGetDisplayList(theCount, theIDs, &theCount); + CGDisplayErr err = wxOSXGetDisplayList(theCount, theIDs.get(), &theCount); wxCHECK_MSG( err == CGDisplayNoErr, NULL, "wxOSXGetDisplayList() failed" ); wxCHECK_MSG( n < theCount, NULL, wxS("Invalid display index") );