mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #3086
3086: Fix 2 leaks in CServerBrowser r=def- a=Learath2 The only leaks reported by ASan that are allocated by us. There is one other by SDL and one by X11. Co-authored-by: Learath2 <learath2@gmail.com>
This commit is contained in:
commit
e11511fe8b
|
@ -70,6 +70,12 @@ CServerBrowser::CServerBrowser()
|
||||||
|
|
||||||
CServerBrowser::~CServerBrowser()
|
CServerBrowser::~CServerBrowser()
|
||||||
{
|
{
|
||||||
|
if(m_ppServerlist)
|
||||||
|
free(m_ppServerlist);
|
||||||
|
|
||||||
|
if(m_pSortedServerlist)
|
||||||
|
free(m_pSortedServerlist);
|
||||||
|
|
||||||
if(m_pDDNetInfo)
|
if(m_pDDNetInfo)
|
||||||
json_value_free(m_pDDNetInfo);
|
json_value_free(m_pDDNetInfo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue