From ec10ce591d1037d8152c79b9b8707db7d9a6d774 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 15 Sep 2008 12:15:54 +0000 Subject: [PATCH] delete -> delete[]. CID 151 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27522 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/AttributeStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/tracker/AttributeStream.cpp b/src/kits/tracker/AttributeStream.cpp index 13cff327e3..6b439ba65f 100644 --- a/src/kits/tracker/AttributeStream.cpp +++ b/src/kits/tracker/AttributeStream.cpp @@ -456,7 +456,7 @@ AttributeStreamMemoryNode::BufferingGet(const char *name, uint32 type, off_t siz { char *newBuffer = new char[size]; if (!fReadFrom->Fill(newBuffer)) { - delete newBuffer; + delete[] newBuffer; return NULL; }