mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Fix minor memory leak in Net_Connect()
# Conflicts: # source/duke3d/src/network.cpp
This commit is contained in:
parent
4128fd62c7
commit
54ce1b5c06
1 changed files with 2 additions and 0 deletions
|
@ -4689,6 +4689,7 @@ void Net_Connect(const char *srvaddr)
|
||||||
if (g_netClient == NULL)
|
if (g_netClient == NULL)
|
||||||
{
|
{
|
||||||
Printf("An error occurred while trying to create an ENet client host.\n");
|
Printf("An error occurred while trying to create an ENet client host.\n");
|
||||||
|
Xfree(oursrvaddr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4702,6 +4703,7 @@ void Net_Connect(const char *srvaddr)
|
||||||
if (g_netClientPeer == NULL)
|
if (g_netClientPeer == NULL)
|
||||||
{
|
{
|
||||||
Printf("No available peers for initiating an ENet connection.\n");
|
Printf("No available peers for initiating an ENet connection.\n");
|
||||||
|
Xfree(oursrvaddr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue