Fix wrong usage of free in d3d9/d3d.cpp. Should be delete.