[PATCH] wined3d: Prevent buildup of retired buffer objects' memory.