<div dir="ltr"><div><div>Then again, I didn't check the refcounting behavior of frames with children. Maybe these tests could probably be merged with the refcount tests in test_frame_qi?<br><br></div>Cheers,<br></div>Aaryaman<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 17, 2015 at 12:03 AM, Aaryaman Vasishta <span dir="ltr"><<a href="mailto:jem456.vasishta@gmail.com" target="_blank">jem456.vasishta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Oct 16, 2015 at 4:30 PM, Stefan Dösinger <span dir="ltr"><<a href="mailto:stefandoesinger@gmail.com" target="_blank">stefandoesinger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<span><br>
Am 2015-10-15 um 21:54 schrieb Bernhard Übelacker:<br>
> +    hr = IDirect3DRMFrame_DeleteChild(pFrameP2, pFrameC);<br>
> +    ok(hr == D3DRM_OK, "Cannot remove child frame (hr = %x)\n", hr);<br>
> +    CHECK_REFCOUNT(pFrameC, 1);<br>
> +<br>
> +    CHECK_REFCOUNT(pFrameP1, 2);<br>
> +    hr = IDirect3DRMFrame_DeleteChild(pFrameP2, pFrameP1);<br>
> +    ok(hr == D3DRM_OK, "Cannot remove child frame (hr = %x)\n", hr);<br>
> +    CHECK_REFCOUNT(pFrameP1, 1);<br>
</span>Are these necessary? I'd expect the frame children to be detached when<br>
their parent is destroyed, similarly to how it works in ddraw.<br>
<br>
I'm not opposed to explicitly removing them, so I'll send my<br>
signed-off-by to wine-patches. But it's something someone (Jamm? ;-) )<br>
could write an explicit test for.<br></blockquote></span><div>Well I agree that it's not really needed since the Release method already deletes any existing children that exist on the frame that it's called on. <br></div></div><br></div></div>
</blockquote></div><br></div></div>