diff --git a/src/servers/registrar/TRoster.cpp b/src/servers/registrar/TRoster.cpp index c1425aeb0f..279b192334 100644 --- a/src/servers/registrar/TRoster.cpp +++ b/src/servers/registrar/TRoster.cpp @@ -1776,7 +1776,7 @@ TRoster::_HandleGetRecentEntries(BMessage* request) if (fileTypes) { for (int i = 0; i < fileTypesCount; i++) delete [] fileTypes[i]; - delete fileTypes; + delete[] fileTypes; fileTypes = NULL; } request->SendReply(&reply);