diff options
author | Andy McFadden <fadden@android.com> | 2014-03-03 17:09:54 -0800 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2014-03-03 17:09:54 -0800 |
commit | 778dccf9a7aa05e0c8df1481ea1d6048bb659667 (patch) | |
tree | a30af7320f717273bdebebf11be17849d850989e /cmds/screenrecord/FrameOutput.h | |
parent | feac1a43c8b674c4b526214fa8061452fd6e4846 (diff) | |
download | frameworks_av-778dccf9a7aa05e0c8df1481ea1d6048bb659667.zip frameworks_av-778dccf9a7aa05e0c8df1481ea1d6048bb659667.tar.gz frameworks_av-778dccf9a7aa05e0c8df1481ea1d6048bb659667.tar.bz2 |
Fix destructors
Make destructors private -- only RefBase should be able to destroy
instances of these.
Change-Id: Iff52e226995fe5740a9dfc35af53dd6dd9d74501
Diffstat (limited to 'cmds/screenrecord/FrameOutput.h')
-rw-r--r-- | cmds/screenrecord/FrameOutput.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/screenrecord/FrameOutput.h b/cmds/screenrecord/FrameOutput.h index b8e9e68..bb66e05 100644 --- a/cmds/screenrecord/FrameOutput.h +++ b/cmds/screenrecord/FrameOutput.h @@ -34,9 +34,6 @@ public: mExtTextureName(0), mPixelBuf(NULL) {} - virtual ~FrameOutput() { - delete[] mPixelBuf; - } // Create an "input surface", similar in purpose to a MediaCodec input // surface, that the virtual display can send buffers to. Also configures @@ -59,6 +56,11 @@ private: FrameOutput(const FrameOutput&); FrameOutput& operator=(const FrameOutput&); + // Destruction via RefBase. + virtual ~FrameOutput() { + delete[] mPixelBuf; + } + // (overrides GLConsumer::FrameAvailableListener method) virtual void onFrameAvailable(); |