On 29 March 2016 at 17:01, Aaryaman Vasishta jem456.vasishta@gmail.com wrote:
Are there any existing examples within wine where a destroy callback was used in similar cases?
If you mean AddDestroyCallback() specifically, that's pretty specific to d3drm and you'd be limited to test_Viewport() in the d3drm tests. The concept of a callback that gets called on destruction is much more generic of course, and in that case you should be able to find plenty. E.g. surface_wined3d_object_destroyed() in d3d9.