delete 释放new分配的单个对象指针指向的内存
delete[] 释放new分配的对象数组指针指向的内存
当new对象有[]就用delete[],否则用delete,delete指针以后应赋值为NULL,最好先判断这个指针是否存在
例如char* afficheContent = new char[afficheSize];
delete[] afficheContent;
GameSocket*g_lpGameSocket = new GameSocket();
if(g_lpUSLogonSocket){
delete g_lpGameSocket;
g_lpGameSocket = NULL;
}