[PATCH] wined3d: move texture reference decrement to end of usage (Coverity)

Henri Verbeet hverbeet at gmail.com
Sat Sep 29 06:01:41 CDT 2012


On 29 September 2012 11:14, Marcus Meissner <marcus at jet.franken.de> wrote:
> Hi,
>
> I do not fully understand all this, but it seem the decref needs to
> be behind the last usage of prev.
>
Sort of. It's probably better to do it like this, but a non-zero
bind_count implies a non-zero reference count as well, so in practice
there's no danger of using prev after it's free'd.



More information about the wine-devel mailing list