diff --git a/src/apps/haikudepot/ui/UserLoginWindow.cpp b/src/apps/haikudepot/ui/UserLoginWindow.cpp index 643d40fcf4..f879c4f8cb 100644 --- a/src/apps/haikudepot/ui/UserLoginWindow.cpp +++ b/src/apps/haikudepot/ui/UserLoginWindow.cpp @@ -875,7 +875,7 @@ UserLoginWindow::_UnpackCaptcha(BMessage& responsePayload, Captcha& captcha) captcha.SetToken(token); captcha.SetPngImageData(buffer, decodedSize); } - delete buffer; + delete[] buffer; } return result;