From 9041c0447fe91ad98cb10ea7ed71884e07b721f5 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Mon, 11 Apr 2011 19:35:21 -0700 Subject: [PATCH] This can be done on the stack... --- Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.cpp b/Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.cpp index f2c24151..d01d7093 100644 --- a/Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.cpp +++ b/Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.cpp @@ -208,8 +208,8 @@ char plKeyboardDevice::KeyEventToChar( plKeyEventMsg *msg ) { short code = msg->GetKeyCode(); char c = 0; - unsigned char *kbState = TRACKED_NEW unsigned char[256]; - unsigned char *buffer = TRACKED_NEW unsigned char[256]; + unsigned char kbState[256]; + unsigned char buffer[256]; UINT scanCode; int retVal; @@ -320,9 +320,6 @@ char plKeyboardDevice::KeyEventToChar( plKeyEventMsg *msg ) break; } - delete [] kbState; - delete [] buffer; - return c; }