forked from Ivasoft/DSView
replace malloc with g_malloc
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user