You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Coverity issues: resource leak and uncaught exceptions in destructors
CID 2984086 (RESOURCE_LEAK): In CreateCmDevice (Linux), device->m_dll was
loaded via so_load but not freed via so_free() before delete device in
error paths. Added so_free(device->m_dll) before each delete device.
CIDs 3558368, 3558369, 3558372, 3558379, 3558386, 3558389, 3558398
(UNCAUGHT_EXCEPT): MFX_STS_TRACE macro creates std::string objects that
can throw std::bad_alloc. Since destructors are implicitly noexcept, any
exception would call std::terminate(). Wrapped destructor bodies with
try-catch(...) to prevent exception propagation.
Affected destructors:
- mfxSurfaceVulkanImg2DImpl::~mfxSurfaceVulkanImg2DImpl
- SurfaceScopedLock::~SurfaceScopedLock
- vaapi_buffer_wrapper::~vaapi_buffer_wrapper
- vaapi_surface_wrapper::~vaapi_surface_wrapper
- mfxSurfaceVAAPIImpl::~mfxSurfaceVAAPIImpl
- VACopyWrapper::SurfaceWrapper::~SurfaceWrapper
- LinuxVideoAccelerator::~LinuxVideoAccelerator
0 commit comments