commit | 6aca3d9f7c8e637ec253ca1d501d8b91d3e63770 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Mon Sep 19 13:58:12 2011 +0200 |
committer | David 'Digit' Turner <digit@google.com> | Tue Sep 20 15:58:53 2011 +0200 |
tree | 47f492160237c06ff7c7982198e8afd495d31f9e | |
parent | 8abfab1baf04ebd57f8eff74485b746d56368014 [diff] |
emulator: opengl: add missing EGLDisplay destructor Change-Id: I788904a597b7929a7fc7a5db3cf5baa79b9f1936
diff --git a/tools/emulator/opengl/system/egl/eglDisplay.cpp b/tools/emulator/opengl/system/egl/eglDisplay.cpp index 881b8d6..7beeb8e 100644 --- a/tools/emulator/opengl/system/egl/eglDisplay.cpp +++ b/tools/emulator/opengl/system/egl/eglDisplay.cpp
@@ -70,6 +70,11 @@ pthread_mutex_init(&m_lock, NULL); } +eglDisplay::~eglDisplay() +{ + pthread_mutex_destroy(&m_lock); +} + bool eglDisplay::initialize(EGLClient_eglInterface *eglIface) { pthread_mutex_lock(&m_lock);
diff --git a/tools/emulator/opengl/system/egl/eglDisplay.h b/tools/emulator/opengl/system/egl/eglDisplay.h index 934c699..9d979d9 100644 --- a/tools/emulator/opengl/system/egl/eglDisplay.h +++ b/tools/emulator/opengl/system/egl/eglDisplay.h
@@ -33,6 +33,7 @@ { public: eglDisplay(); + ~eglDisplay(); bool initialize(EGLClient_eglInterface *eglIface); void terminate();