From 2f32c12f37cfc68510c2edee1a1ad5b55870ecf1 Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Tue, 28 Dec 2010 10:46:42 +0000 Subject: [PATCH] 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 --- src/servers/registrar/TRoster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);