diff --git a/src/osx/core/mimetype.cpp b/src/osx/core/mimetype.cpp index fcc076a7d8..5a6e534d5a 100644 --- a/src/osx/core/mimetype.cpp +++ b/src/osx/core/mimetype.cpp @@ -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 )