Stefan Dösinger : d3d9: Release the wined3d query when the d3d9 query is destroyed.