Commit 11de5197 authored by Loren Merritt's avatar Loren Merritt
Browse files

free() -> x264_free()


git-svn-id: svn://svn.videolan.org/x264/trunk@182 df754926-b1dd-0310-bc7b-ec298dee348c
parent de97a12a
...@@ -357,7 +357,7 @@ x264_t *x264_encoder_open ( x264_param_t *param ) ...@@ -357,7 +357,7 @@ x264_t *x264_encoder_open ( x264_param_t *param )
{ {
x264_log( h, X264_LOG_ERROR, "invalid width x height (%dx%d)\n", x264_log( h, X264_LOG_ERROR, "invalid width x height (%dx%d)\n",
param->i_width, param->i_height ); param->i_width, param->i_height );
free( h ); x264_free( h );
return NULL; return NULL;
} }
...@@ -365,13 +365,13 @@ x264_t *x264_encoder_open ( x264_param_t *param ) ...@@ -365,13 +365,13 @@ x264_t *x264_encoder_open ( x264_param_t *param )
{ {
x264_log( h, X264_LOG_ERROR, "width %% 16 != 0 or height %% 16 != 0 (%dx%d)\n", x264_log( h, X264_LOG_ERROR, "width %% 16 != 0 or height %% 16 != 0 (%dx%d)\n",
param->i_width, param->i_height ); param->i_width, param->i_height );
free( h ); x264_free( h );
return NULL; return NULL;
} }
if( param->i_csp != X264_CSP_I420 ) if( param->i_csp != X264_CSP_I420 )
{ {
x264_log( h, X264_LOG_ERROR, "invalid CSP (only I420 supported)\n" ); x264_log( h, X264_LOG_ERROR, "invalid CSP (only I420 supported)\n" );
free( h ); x264_free( h );
return NULL; return NULL;
} }
......
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