Kaydet (Commit) 228c5099 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

OGLPlayer: check before dereference

Change-Id: I4bbaf97fe8c5def441ca106c26ad312281ed352f
üst a71ae24a
......@@ -31,6 +31,8 @@ OGLPlayer::OGLPlayer()
OGLPlayer::~OGLPlayer()
{
if( m_pHandle )
{
for (size_t i = 0; i < m_pHandle->size; ++i)
{
if (m_pHandle->files[i].type != GLTF_JSON)
......@@ -39,6 +41,7 @@ OGLPlayer::~OGLPlayer()
}
}
gltf_renderer_release(m_pHandle);
}
}
static bool lcl_LoadFile( glTFFile* io_pFile, const OUString& rURL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment