zink: delete query rather than allocating a new one
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 27 Nov 2019 15:30:29 +0000 (16:30 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 29 Nov 2019 08:54:25 +0000 (09:54 +0100)
commit49f53ee336e0cc0ad89ab1a8178c4d751dd09de8
treef89d78fa5d3462ebf704ecea096cbc9219deb4d2
parentf2188e58cea14c4b4e05634b7b82c4743d1c5c1d
zink: delete query rather than allocating a new one

It seems I had some fat fingers when writing this function, and I
accidentally ended up allocating a new query and immediately trying to
delete an uninitialized pool instead of just deleting the pool of the
query that was passed.

CoverityID: 1455196
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/zink/zink_query.c