It does, but that's how Native behaves too. See the tests on this patch for more details.<div><br></div><div>Cheers,</div><div>Aaryaman<br><br>On Friday, April 29, 2016, Sebastian Lackner <<a href="mailto:sebastian@fds-team.de">sebastian@fds-team.de</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 28.04.2016 21:17, Aaryaman Vasishta wrote:<br>
> +    IDirect3DRM_AddRef(texture->d3drm);<br>
> +<br>
> +    if (texture->image)<br>
> +        return D3DRMERR_BADOBJECT;<br>
<br>
Doesn't this leak a reference in case of an error? ->initialized is not<br>
set to TRUE yet.<br>
<br>
</blockquote></div>