Use correct delete[] for a buffer allocated with new[].
Fix mismatch between scalar new and array delete in GetPathForIconFile() in wxOSX wxMimeTypeManager code. Closes #12826. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4a40cd9bae
commit
b622441a8d
@ -199,7 +199,7 @@ wxString GetPathForIconFile( CFBundleRef bundle, CFStringRef iconFile )
|
||||
OSStatus status = LSGetExtensionInfo( wholeString.length, buffer, &periodIndex );
|
||||
|
||||
// Deallocate the buffer
|
||||
delete buffer;
|
||||
delete [] buffer;
|
||||
|
||||
// If the period could not be located it will not be possible to get the URL
|
||||
if( status != noErr || periodIndex == kLSInvalidExtensionIndex )
|
||||
|
Loading…
Reference in New Issue
Block a user