summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-03-26 18:15:35 -0700
committerMathias Agopian <mathias@google.com>2013-03-26 18:15:35 -0700
commit8000d0694bc34bc17d869da546d8ff8790ae7be4 (patch)
tree9b1f6afe40b9648efddea30ccee71961a1a78e5f /include/gui
parent437bdbbaec76099b8b4582aa9f965e60b3f3cdb6 (diff)
downloadframeworks_native-8000d0694bc34bc17d869da546d8ff8790ae7be4.zip
frameworks_native-8000d0694bc34bc17d869da546d8ff8790ae7be4.tar.gz
frameworks_native-8000d0694bc34bc17d869da546d8ff8790ae7be4.tar.bz2
make sure to unlock the screenshot's buffer on destruction
this fixes a memory leak on various devices Bug: 8475134 Change-Id: I25924674c803a0cb22371a95c60664c36acb0340
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/SurfaceComposerClient.h1
1 files changed, 1 insertions, 0 deletions
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 @@ private:
public:
ScreenshotClient();
+ ~ScreenshotClient();
// frees the previous screenshot and capture a new one
status_t update(const sp<IBinder>& display);