Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 919ba007 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fix potential leakage issues" into main

parents 9639da02 23349ea3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -596,6 +596,8 @@ status_t GraphicBuffer::unflatten(void const*& buffer, size_t& size, int const*&
            width = height = stride = format = usage_deprecated = 0;
            layerCount = 0;
            usage = 0;
            native_handle_close(handle);
            native_handle_delete(const_cast<native_handle_t*>(handle));
            handle = nullptr;
            ALOGE("unflatten: registerBuffer failed: %s (%d)", strerror(-err), err);
            return err;