概率出现系统界面停止问题

概率出现系统界面停止问题,链表类的内存,不应该free直接释放的,需要freeList逐个节点释放内存。
--- a/frameworks/base/services/surfaceflinger/DisplayHardware/HWComposer.cpp
+++ b/frameworks/base/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -192,7 +192,8 @@ status_t HWComposer::release() const {
 
 status_t HWComposer::disable() {
     if (mHwc) {
-        free(mList);
+        //free(mList);
+        freeList(mList);
         mList = NULL;
         int err = mHwc->prepare(mHwc, NULL);
         return (status_t)err;

你可能感兴趣的:(概率出现系统界面停止问题)