summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@digia.com>2013-08-16 17:50:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-21 13:31:53 +0200
commitca769ba264f868ea2f41f2656f7126218b428ad4 (patch)
tree705d30b6acf88008cb064692869b4731c09a2712
parent4585518d523ec5fcc2c0e35f472926d060ca7871 (diff)
Android: Use isValid() to check if the jobject is valid.
Change-Id: I5ec67b9b2abfae2e2c2a44f0bcc7c72cb54beb49 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
-rw-r--r--src/plugins/android/wrappers/jsurfacetexture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/android/wrappers/jsurfacetexture.cpp b/src/plugins/android/wrappers/jsurfacetexture.cpp
index 107f7be39..34edf1b66 100644
--- a/src/plugins/android/wrappers/jsurfacetexture.cpp
+++ b/src/plugins/android/wrappers/jsurfacetexture.cpp
@@ -60,13 +60,13 @@ JSurfaceTexture::JSurfaceTexture(unsigned int texName)
, QJNIObject(g_qtSurfaceTextureClass, "(I)V", jint(texName))
, m_texID(int(texName))
{
- if (m_jobject)
+ if (isValid())
g_objectMap.insert(int(texName), this);
}
JSurfaceTexture::~JSurfaceTexture()
{
- if (m_jobject)
+ if (isValid())
g_objectMap.remove(m_texID);
}