nv50,nvc0: free memory allocated by performance metrics
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 16 Dec 2015 21:44:17 +0000 (22:44 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 16 Dec 2015 22:03:08 +0000 (23:03 +0100)
commitaeee7f2a4dc7ceddace91ef5e91790483f4597e0
tree4a38c4b43dfbe10505da0260bb8364f8bbfb6e2b
parent9aca60bfb07d87d82aff943a23cfa693e2712528
nv50,nvc0: free memory allocated by performance metrics

The destroy_query() helper was actually never called. This fixes
a memory leak while monitoring performance metrics.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.1" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_query_hw.c
src/gallium/drivers/nouveau/nv50/nv50_query_hw_metric.c
src/gallium/drivers/nouveau/nv50/nv50_query_hw_sm.c
src/gallium/drivers/nouveau/nvc0/nvc0_query_hw.c
src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_metric.c
src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c