diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 09:55:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 21:12:54 +0100 |
commit | 0f137d7181f4aeed5ae8fa5cfa31c25c2226f7e3 (patch) | |
tree | 9898178381f0047f5d43a495876a76cbc9f48117 /avmedia | |
parent | 97bfac4861bf9d8f3223b66474fa24d185d1223a (diff) |
coverity#1213288 Resource leak
Change-Id: I96ee704cc438e02cef95facc28d550644bf03d67
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglmanager.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/avmedia/source/opengl/oglmanager.cxx b/avmedia/source/opengl/oglmanager.cxx index 96676ab5f19c..f55553f653f2 100644 --- a/avmedia/source/opengl/oglmanager.cxx +++ b/avmedia/source/opengl/oglmanager.cxx @@ -34,7 +34,10 @@ uno::Reference< media::XPlayer > SAL_CALL OGLManager::createPlayer( const OUStri if( pPlayer->create(rURL) ) return uno::Reference< media::XPlayer >(pPlayer); else + { + delete pPlayer; return uno::Reference< media::XPlayer >(); + } } OUString SAL_CALL OGLManager::getImplementationName() throw ( uno::RuntimeException, std::exception ) |