commit | 8000d0694bc34bc17d869da546d8ff8790ae7be4 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Tue Mar 26 18:15:35 2013 -0700 |
committer | Mathias Agopian <mathias@google.com> | Tue Mar 26 18:15:35 2013 -0700 |
tree | 9b1f6afe40b9648efddea30ccee71961a1a78e5f | |
parent | 437bdbbaec76099b8b4582aa9f965e60b3f3cdb6 [diff] |
make sure to unlock the screenshot's buffer on destruction this fixes a memory leak on various devices Bug: 8475134 Change-Id: I25924674c803a0cb22371a95c60664c36acb0340
diff --git a/include/gui/SurfaceComposerClient.h b/include/gui/SurfaceComposerClient.h index 23655c7..6bf5b47 100644 --- a/include/gui/SurfaceComposerClient.h +++ b/include/gui/SurfaceComposerClient.h
@@ -170,6 +170,7 @@ public: ScreenshotClient(); + ~ScreenshotClient(); // frees the previous screenshot and capture a new one status_t update(const sp<IBinder>& display);