From 8875c7d302d508c22f42fd83a3ab59e6cebec866 Mon Sep 17 00:00:00 2001
From: riccardom <riccardom@users.sf.net>
Date: Tue, 2 Feb 2010 15:52:15 +0000
Subject: [PATCH] Fix allocation / deallocation mismatch, found by cppcheck.

---
 desmume/src/wifi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/desmume/src/wifi.cpp b/desmume/src/wifi.cpp
index 6cc25181b..de2655a1a 100644
--- a/desmume/src/wifi.cpp
+++ b/desmume/src/wifi.cpp
@@ -1717,7 +1717,7 @@ void Adhoc_SendPacket(u8* packet, u32 len)
 	
 	WIFI_LOG(4, "Ad-hoc: sent %i/%i bytes of packet.\n", nbytes, frameLen);
 
-	delete frame;
+	delete[] frame;
 }
 
 void Adhoc_usTrigger()