Fix incorrect usage of Dav1dData and Dav1dPicture.
Both of these shell structs need to have their references released AND then have their allocation deleted. I.e., just releasing the references does not delete the attached memory. While looking into this I noticed that it could be possible to get into a state where a DecoderBuffer is lost, so a DCHECK has been added to call attention to that. BUG=928662,928692 TEST=no more memory leaks. R=liberato Change-Id: Iae06812f1efaef3c1628e2594594cf4e7529a89a Reviewed-on: https://chromium-review.googlesource.com/c/1455663 Auto-Submit: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Frank Liberato <liberato@chromium.org> Reviewed-by:Frank Liberato <liberato@chromium.org> Cr-Commit-Position: refs/heads/master@{#629431}
Showing
Please register or sign in to comment