qasf: Stop the WMReader first in asf_reader_destroy.

Otherwise WMReader may invoke the reader callback of the asf_reader as we are releasing the its resources, which the reader callback may use, resulting in use-after-frees.


Found while working on !9858. Although not the root cause of Bug 59159, it is still a bug. Without this, asf reader segfaults in asf_reader_destroy if it is not stopped first before being released. Testing on native shows there were no such crashes.

Merge request reports

Loading