Browse Source

cxx_helpers: url: Fix leak on move assignment

pull/121/head
Hugo Beauzée-Luyssen 5 years ago
committed by Jean-Baptiste Kempf
parent
commit
79b0d4b284
  1. 1
      include/vlc_cxx_helpers.hpp

1
include/vlc_cxx_helpers.hpp

@ -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;

Loading…
Cancel
Save