Since we are not keeping the array's data, arg must be TRUE to free it.
reported by Fr3ya on github as PR #207
/* Clear the buffers to prepare for the new samples */
if (ch->index < 8) {
- g_array_free(data_low_channels, FALSE);
+ g_array_free(data_low_channels, TRUE);
data_low_channels = g_array_new(FALSE, FALSE, sizeof(uint8_t));
} else {
- g_array_free(data_high_channels, FALSE);
+ g_array_free(data_high_channels, TRUE);
data_high_channels = g_array_new(FALSE, FALSE, sizeof(uint8_t));
}