Commit 0c168f0f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Media: Don't retain a nullptr instance

parent 9d2e6edb
......@@ -145,7 +145,7 @@ public:
explicit Media( Internal::InternalPtr ptr, bool incrementRefCount)
: Internal{ ptr, libvlc_media_release }
if (incrementRefCount)
if ( incrementRefCount && ptr != nullptr )
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