[ 3/3] ddraw: Keep track of interface attached by AddAttachedSurface and detach correct interface when parent is released.

Octavian Voicu octavian.voicu at gmail.com
Mon Oct 10 03:47:27 CDT 2011


On Mon, Oct 10, 2011 at 10:04 AM, Henri Verbeet <hverbeet at gmail.com> wrote:
> Can't you just handle this in ddraw_surface_delete_attached_surface()?
> I.e., replace the Release calls in
> ddraw_surface?_DeleteAttachedSurface() with a
> IUnknown_Release(Surf->attached_iface) in
> ddraw_surface_delete_attached_surface(), and then just call
> ddraw_surface_delete_attached_surface() where you're using
> delete_attached_surface_helper() now.

This is much clever! I'll resend the patches, thanks.

Octavian



More information about the wine-devel mailing list