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:
parent
56c393e396
commit
2f32c12f37
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user