mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
Fix deletes in DBcore::Open
These are arrays!
This commit is contained in:
parent
66d24ff419
commit
7349f99ba2
@ -223,10 +223,10 @@ bool DBcore::Open(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
LockMutex lock(&MDatabase);
|
LockMutex lock(&MDatabase);
|
||||||
safe_delete(pHost);
|
safe_delete_array(pHost);
|
||||||
safe_delete(pUser);
|
safe_delete_array(pUser);
|
||||||
safe_delete(pPassword);
|
safe_delete_array(pPassword);
|
||||||
safe_delete(pDatabase);
|
safe_delete_array(pDatabase);
|
||||||
pHost = strcpy(new char[strlen(iHost) + 1], iHost);
|
pHost = strcpy(new char[strlen(iHost) + 1], iHost);
|
||||||
pUser = strcpy(new char[strlen(iUser) + 1], iUser);
|
pUser = strcpy(new char[strlen(iUser) + 1], iUser);
|
||||||
pPassword = strcpy(new char[strlen(iPassword) + 1], iPassword);
|
pPassword = strcpy(new char[strlen(iPassword) + 1], iPassword);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user