Commit 79b0d4b2 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf
Browse files

cxx_helpers: url: Fix leak on move assignment

parent 41bea794
......@@ -452,6 +452,7 @@ public:
url& operator=( url&& u ) noexcept
{
vlc_UrlClean( this );
*(static_cast<vlc_url_t*>( this )) = u;
u.psz_buffer = nullptr;
u.psz_pathbuffer = 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