Delete the array after deleting the items in the array. CID 2980.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39973 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Fredrik Holmqvist 2010-12-28 10:46:42 +00:00
parent 56c393e396
commit 2f32c12f37

View File

@ -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);