ddrawex: Don't leak surfaces.
commit28850ae5f84b2d1746de52dc1c915e0a6bb5f824
authorStefan Dösinger <stefan@codeweavers.com>
Thu, 4 Sep 2014 11:18:16 +0000 (4 13:18 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 4 Sep 2014 18:21:03 +0000 (4 20:21 +0200)
tree4aa81aca7c5b62e4e65778acdd9f8017ba0dd19a
parentd495cc37a676eaafd3af5585adf2bf012b7cceda
ddrawex: Don't leak surfaces.

dds_get_outer AddRefs the inner surface when it creates the wrapper
surface. The wrapper releases only one reference when it is destroyed,
leaking one of the two. AddRefing in dds_get_outer makes sense because
this is also used by e.g. GetAttachedSurface, where it creates a new
wrapper for surfaces ddrawex didn't know about yet.
dlls/ddrawex/ddraw.c