wined3d_resource_free_sysmem() uses wined3d_resource.heap_pointer to deallocate wined3d_resource.heap_memory. Preserve pairing of heap_pointer/heap_memory to prevent deallocation of incorrect heap_memory.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57387
-- v6: wined3d: Swap wined3d_resource.heap_pointer on swapchain present.