st/nine: Don't increment refcount on VertexDeclaration creation failure
authorPatrick Rudolph <siro@das-labor.org>
Thu, 28 May 2015 18:45:01 +0000 (20:45 +0200)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commit531acbc56b987a1ea288b95046e4181e34b611e8
tree7ddaede722dc78631985e0b642e3d56990e8b0dd
parentb39fd5b1daa8baac3d792c0032d7a12f6eaf0392
st/nine: Don't increment refcount on VertexDeclaration creation failure

NineUnknown_ctor increments the refcount even in case of an error.
Restructure the code to prevent refcount increments.
Fixes a couple of wine tests.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/vertexdeclaration9.c