diff options
author | keunyoung <keunyoung@google.com> | 2013-04-01 12:46:24 -0700 |
---|---|---|
committer | keunyoung <keunyoung@google.com> | 2013-04-01 12:46:24 -0700 |
commit | 06ebcd593ed97f99ed1e6d2672a71dd29e249cda (patch) | |
tree | 72418661c97ab145686a4d74339f7f4081c4785b /emulator/opengl/host/libs/libOpenglRender/RenderThread.cpp | |
parent | 17bad116b0fc705d5e6cfcd3ead6c38945e7ce86 (diff) | |
download | sdk-06ebcd593ed97f99ed1e6d2672a71dd29e249cda.zip sdk-06ebcd593ed97f99ed1e6d2672a71dd29e249cda.tar.gz sdk-06ebcd593ed97f99ed1e6d2672a71dd29e249cda.tar.bz2 |
delete socket when the thread is destroyed
- SocketStream is passed from RenderServer::Main, but it is not deleted.
- As a result, emulator will keep opening these sockets.
Change-Id: I4f2445855fc45a8d5f20f4d598e7021e8f3e000c
Diffstat (limited to 'emulator/opengl/host/libs/libOpenglRender/RenderThread.cpp')
-rw-r--r-- | emulator/opengl/host/libs/libOpenglRender/RenderThread.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emulator/opengl/host/libs/libOpenglRender/RenderThread.cpp b/emulator/opengl/host/libs/libOpenglRender/RenderThread.cpp index 0119133..5ffea4b 100644 --- a/emulator/opengl/host/libs/libOpenglRender/RenderThread.cpp +++ b/emulator/opengl/host/libs/libOpenglRender/RenderThread.cpp @@ -31,6 +31,11 @@ RenderThread::RenderThread() : { } +RenderThread::~RenderThread() +{ + delete m_stream; +} + RenderThread *RenderThread::create(IOStream *p_stream) { RenderThread *rt = new RenderThread(); |