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

Commit baf0e06d authored by Jamie Gennis's avatar Jamie Gennis Committed by Android Git Automerger
Browse files

am 827d069a: Merge "SurfaceTexture: free buffers when disconnect fails" into ics-mr0

* commit '827d069afb297b6d96c995c03da9d4ee17e60679':
  SurfaceTexture: free buffers when disconnect fails
parents 860573e6 c9362e7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -409,9 +409,9 @@ int SurfaceTextureClient::connect(int api) {
int SurfaceTextureClient::disconnect(int api) {
    LOGV("SurfaceTextureClient::disconnect");
    Mutex::Autolock lock(mMutex);
    freeAllBuffers();
    int err = mSurfaceTexture->disconnect(api);
    if (!err) {
        freeAllBuffers();
        mReqFormat = 0;
        mReqWidth = 0;
        mReqHeight = 0;