imf: Use unique_ptr for managing engine lifetimes.
We currently manually manage the lifetime of the engines in engine map. But we can use a unique_ptr instead. It automatically gets released when we remove an engine from the engine map. Bug: 1009903 Change-Id: I93874b0154b949ddceef29695fc000cacfef73cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837443 Commit-Queue: Keith Lee <keithlee@chromium.org> Reviewed-by:Keith Lee <keithlee@chromium.org> Cr-Commit-Position: refs/heads/master@{#702745}
Showing
Please register or sign in to comment