> + */
> +GEANY_API_SYMBOL
> +TMQuery *tm_query_new(const TMWorkspace *workspace, gint data_sources)
> +{
> +     TMQuery *q = g_slice_new(TMQuery);
> +
> +     q->workspace = workspace;
> +     q->data_sources = data_sources;
> +     q->names = g_ptr_array_new();
> +     q->langs = g_array_new(FALSE, FALSE, sizeof(TMParserType));
> +     q->scopes = g_ptr_array_new();
> +     q->type = -1;
> +     q->refcount = 1;
> +
> +     g_ptr_array_set_free_func(q->names, free_g_string);
> +     g_ptr_array_set_free_func(q->scopes, g_free);

Will use that.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1187/files/386006313a0b78c614bd1ac522ac121e093df58d#r75811068

Reply via email to