2
0
forked from Ivasoft/DSView

replace malloc with g_malloc

This commit is contained in:
dreamsource-tai
2024-07-25 10:53:30 +08:00
parent 66ed68ea17
commit c50e8f714a
31 changed files with 116 additions and 122 deletions

View File

@@ -205,7 +205,7 @@ namespace pv
struct ds_device_base_info *dev = (array + count - 1);
ds_device_handle dev_handle = dev->handle;
free(array);
g_free(array);
if (set_device(dev_handle))
{

View File

@@ -1142,7 +1142,7 @@ namespace pv
if (i == select_index)
cur_dev_handle = p->handle;
}
free(array);
g_free(array);
_device_selector.setCurrentIndex(select_index);