mirror of
https://github.com/holub/mame
synced 2025-05-18 19:49:35 +03:00
Fixed memory leaks in softlist (no whatsnew)
This commit is contained in:
parent
25f1101204
commit
b929a58a47
@ -831,6 +831,7 @@ const char *software_get_clone(char *swlist, const char *swname)
|
|||||||
if (software_list_ptr)
|
if (software_list_ptr)
|
||||||
{
|
{
|
||||||
software_info *tmp = software_list_find(software_list_ptr, swname, NULL);
|
software_info *tmp = software_list_find(software_list_ptr, swname, NULL);
|
||||||
|
software_list_close(software_list_ptr);
|
||||||
return tmp->parentname;
|
return tmp->parentname;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -850,6 +851,7 @@ UINT32 software_get_support(char *swlist, const char *swname)
|
|||||||
if (software_list_ptr)
|
if (software_list_ptr)
|
||||||
{
|
{
|
||||||
software_info *tmp = software_list_find(software_list_ptr, swname, NULL);
|
software_info *tmp = software_list_find(software_list_ptr, swname, NULL);
|
||||||
|
software_list_close(software_list_ptr);
|
||||||
return tmp->supported;
|
return tmp->supported;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user