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

Commit 8d7a59c3 authored by Wu-cheng Li's avatar Wu-cheng Li
Browse files

Remove setPreviewDisplay in CameraService::Client::~Client().

mSurface is released in destructor and setPreviewWindow(0) is
called in Client::disconnect(). setPreviewDisplay is not needed
in destructor.

bug:2964479
Change-Id: I329901659a2af407816c34e02f37143b28183a89
parent 7a9f6faa
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -336,11 +336,6 @@ CameraService::Client::~Client() {
    int callingPid = getCallingPid();
    LOG1("Client::~Client E (pid %d, this %p)", callingPid, this);

    // Clean up the ANativeWindow
    if (mSurface != 0) {
        setPreviewDisplay(0);
    }

    // set mClientPid to let disconnet() tear down the hardware
    mClientPid = callingPid;
    disconnect();