Fix the crash of deallocate caused by delete array error on storeInjectionConfig()
Root cause: Because mInjectionConfig is plain old data, it's not get initialized to 0. In this case, if we use the delete[] method to delete mInjectionConfig.streams, a deallocation crash may occur. Solution: A new vector member variable is added to store the stream of the internal camera, replacing the original new/delete[] method for storing the stream to avoid another deallocation crash caused by uninitialized mInjectionConfig. Bug: 194700088 Test: Manual Change-Id: Ic3d825fce7b6fefea65e7ce27072ed32f275d4bb
Loading
Please register or sign in to comment