• Stefan Dösinger's avatar
    ddrawex: Don't leak surfaces. · 28850ae5
    Stefan Dösinger authored
    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.
    28850ae5
ddraw.c 47.4 KB