commit | 3ad60bb132363455f93301d17da5d8b27a2da501 | [log] [tgz] |
---|---|---|
author | Vishnu Satheesh <[email protected]> | Tue Nov 26 18:29:31 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Nov 26 18:29:31 2024 +0000 |
tree | 9c65f8f9961aada54e88a133662580e650a4ab09 | |
parent | 87ada2aff7530206dd46369f9bcf8a9e5d9a0000 [diff] | |
parent | b6c77a1da546391163f764b59e3227665f964cc3 [diff] |
hwc3: Free drmConnector object after taking backup am: b6c77a1da5 Original change: https://android-review.googlesource.com/c/device/generic/goldfish-opengl/+/3375924 Change-Id: I0ca66fa248f7aeec77a90bb341c31738cf1598ec Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/system/hwc3/DrmConnector.cpp b/system/hwc3/DrmConnector.cpp index d890644..a7b6729 100644 --- a/system/hwc3/DrmConnector.cpp +++ b/system/hwc3/DrmConnector.cpp
@@ -67,7 +67,6 @@ mModes.push_back(std::move(mode)); } - drmModeFreeConnector(drmConnector); if (mStatus == DRM_MODE_CONNECTED) { std::optional<EdidInfo> maybeEdidInfo = loadEdid(drmFd); @@ -87,6 +86,7 @@ __FUNCTION__, mId, (mWidthMillimeters ? *mWidthMillimeters : 0), (mHeightMillimeters ? *mHeightMillimeters : 0)); + drmModeFreeConnector(drmConnector); return true; }