]> git.sesse.net Git - x264/commitdiff
free() -> x264_free()
authorLoren Merritt <pengvado@videolan.org>
Thu, 31 Mar 2005 05:59:11 +0000 (05:59 +0000)
committerLoren Merritt <pengvado@videolan.org>
Thu, 31 Mar 2005 05:59:11 +0000 (05:59 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@182 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/encoder.c

index 68b66a9bc4c583669c4e7cef564c898d5630ec07..391e22cd7c831c7f971ad343c995e2f9cd97b3b1 100644 (file)
@@ -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",
                   param->i_width, param->i_height );
-        free( h );
+        x264_free( h );
         return NULL;
     }
 
@@ -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",
                  param->i_width, param->i_height );
-        free( h );
+        x264_free( h );
         return NULL;
     }
     if( param->i_csp != X264_CSP_I420 )
     {
         x264_log( h, X264_LOG_ERROR, "invalid CSP (only I420 supported)\n" );
-        free( h );
+        x264_free( h );
         return NULL;
     }