To make it clear we are free'ing the array while keeping its data, use
the return value from g_array_free(). Keep the cast since ret type
is a gchar*.
drivers < sr_driver_list__stop; drivers++)
g_array_append_val(array, *drivers);
#endif
- ctx->driver_list = (struct sr_dev_driver **)array->data;
- g_array_free(array, FALSE);
+ ctx->driver_list = (struct sr_dev_driver **)g_array_free(array, FALSE);
}