u_primconvert: Fix leak of the upload BO on context destroy.
authorEric Anholt <eric@anholt.net>
Tue, 30 Dec 2014 23:39:20 +0000 (15:39 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 31 Dec 2014 21:50:17 +0000 (13:50 -0800)
commita6f6d6188c977757695c16d044183db1256d029e
treecc5b908c8d1a2ee7cf6094c96a71c65d4f66ef63
parent37478c638a3607295437ce0a41dae03c200948f4
u_primconvert: Fix leak of the upload BO on context destroy.

v2: Conditionalize it on having done any uploads (Turns out
    u_upload_destroy() isn't safe with a NULL arg).

Reviewed-by: Dave Airlie <airlied@redhat.com> (v1)
src/gallium/auxiliary/indices/u_primconvert.c