summaryrefslogtreecommitdiff
path: root/src/plugins/android/wrappers/jsurfacetexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/android/wrappers/jsurfacetexture.cpp')
-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);
}