mesa/st/perfmon: rebalance CALLOC_STRUCT/FREE
this was using FREE but ST_CALLOC_STRUCT, so fix the other way. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14325>
This commit is contained in:
parent
7c79c9bfb1
commit
05c8fb6335
|
@ -151,7 +151,7 @@ reset_perf_monitor(struct st_perf_monitor_object *stm,
|
|||
struct gl_perf_monitor_object *
|
||||
st_NewPerfMonitor(struct gl_context *ctx)
|
||||
{
|
||||
struct st_perf_monitor_object *stq = ST_CALLOC_STRUCT(st_perf_monitor_object);
|
||||
struct st_perf_monitor_object *stq = CALLOC_STRUCT(st_perf_monitor_object);
|
||||
if (stq)
|
||||
return &stq->base;
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue