Commit 41bea794 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 error

parent 43687100
......@@ -423,7 +423,10 @@ public:
explicit url( const char* str )
{
if ( vlc_UrlParse( this, str ) )
{
vlc_UrlClean( this );
throw invalid( str );
}
}
explicit url( const std::string& str )
......
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