Fix memory leaks in libsurfaceflinger_unittest
Every class that inherits from RefBase must be held by an sp<>. Creating a RefBAse object without an sp<> causes a memory leak. Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest Bug: 181807839 Change-Id: I37ec274b01c5212a5a3cecc2e1eb5b4c9d6122f4
Loading
Please register or sign in to comment