Closed cpearce closed 6 years ago
@bors-servo r=philn
:pushpin: Commit 5ee2696 has been approved by philn
:hourglass: Testing commit 5ee2696ec1f36d94e6d778ef9f6a221e5575aaf2 with merge d7dcfce582a1b952ee9e4e53302149d1e8823595...
:sunny: Test successful - status-travis Approved by: philn Pushing d7dcfce582a1b952ee9e4e53302149d1e8823595 to master...
To resolve the problems in issue #112 and to remove the potential use-after-free which can happen if GeckoMedia shuts down and deallocates video frames before the compositor is finished painting video frames, switch to having the video frames stored in Rust allocated Vecs which are ref counted. This means we won't deallocate the memory until the last Rust or C++ user of the data is destroyed.