Commit fbd8d6fc authored by Rémi Duraffort's avatar Rémi Duraffort

Don't use FREENULL when that's not needed and don't free NULL just for fun.

parent d65d68b4
...@@ -2898,7 +2898,7 @@ static void __MP4_BoxGet( MP4_Box_t **pp_result, ...@@ -2898,7 +2898,7 @@ static void __MP4_BoxGet( MP4_Box_t **pp_result,
if( !psz_path || !psz_path[0] ) if( !psz_path || !psz_path[0] )
{ {
FREENULL( psz_path ); free( psz_path );
*pp_result = NULL; *pp_result = NULL;
return; return;
} }
...@@ -2915,7 +2915,6 @@ static void __MP4_BoxGet( MP4_Box_t **pp_result, ...@@ -2915,7 +2915,6 @@ static void __MP4_BoxGet( MP4_Box_t **pp_result,
// psz_path,psz_token,i_number ); // psz_path,psz_token,i_number );
if( !psz_token ) if( !psz_token )
{ {
FREENULL( psz_token );
free( psz_dup ); free( psz_dup );
*pp_result = p_box; *pp_result = p_box;
return; return;
......
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