svga: Fix resource leak; undo temporary workaround.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Feb 2011 16:14:02 +0000 (16:14 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Feb 2011 16:14:02 +0000 (16:14 +0000)
commit610c24b19d21f3d147fde4d96a3afaa107670f1e
tree8bd8e494080e495256b6cad0f0240d4c8c8819e6
parent0f3eeb45c73e77b791a047d7bd1ba0c18accb116
svga: Fix resource leak; undo temporary workaround.

Leak was introduced when fixing strict aliasing violation in this code:
the reference counting was preserved, but the destructor call on zero
reference count was not.
src/gallium/drivers/svga/svga_draw.c
src/gallium/drivers/svga/svga_resource_buffer_upload.c