media: Fix CdmAdapter member variable declaration order
Move |cdm_| to the bottom of the declaration list so that it is destructed first when CdmAdapter is destructed. This would help prevent |cdm_| from accessing other deleted member during destruction. Also clean up the declaration of other members to map initialization order. BUG=510088 Change-Id: I7c8535c503226089db1d7fd3ce6afcd22bc38dce Reviewed-on: https://chromium-review.googlesource.com/742327Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#512620}
Showing
Please register or sign in to comment