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

Commit 70b3c44f authored by Kwangkyu Park's avatar Kwangkyu Park
Browse files

Fix an issue that a free memory is accessed

In error state, request thread join is not executed. And,
Camera3Device's mId can be accessed from String& after being freed with
CLOGE().

This fix will address by changing reference type to normal variable.

Bug: 268437033
Change-Id: Iad3fcd0fbbaf1e18a2b95093aba08015a933374c
parent cbe7e3e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1018,7 +1018,7 @@ class Camera3Device :

        wp<NotificationListener> mListener;

        const String8&     mId;       // The camera ID
        const String8      mId;       // The camera ID
        int                mStatusId; // The RequestThread's component ID for
                                      // status tracking