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:
Dave Airlie 2021-12-29 09:41:01 +10:00 committed by Marge Bot
parent 7c79c9bfb1
commit 05c8fb6335
1 changed files with 1 additions and 1 deletions

View File

@ -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;