diff options
author | Rodeo <tdskywalker@gmail.com> | 2013-01-06 17:46:44 +0000 |
---|---|---|
committer | Rodeo <tdskywalker@gmail.com> | 2013-01-06 17:46:44 +0000 |
commit | 4e914d9785f6f55298c3f2161cb5fa91371ccb77 (patch) | |
tree | bba8b54017fd198db7d348ac60b9672119301222 /test/test.c | |
parent | 1e2f4aa1583cda216991d21adcc40f8c3558b0fe (diff) |
CLI: fix previous commit. free(NULL) is perfectly safe.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5157 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/test/test.c b/test/test.c index 2e93b88ee..ffa9556d0 100644 --- a/test/test.c +++ b/test/test.c @@ -354,25 +354,25 @@ int main( int argc, char ** argv ) } hb_list_close(&audios); } - if (abitrates != NULL) str_vfree(abitrates); - if (acompressions != NULL) str_vfree(acompressions); - if (aqualities != NULL) str_vfree(aqualities); - if (acodecs != NULL) free(acodecs); - if (arates != NULL) free(arates); - if (atracks != NULL) free(atracks); - if (audio_gain != NULL) free(audio_gain); - if (dynamic_range_compression != NULL) free(dynamic_range_compression); - if (mixdowns != NULL) free(mixdowns); - if (native_language != NULL) free(native_language); - if (format != NULL) free(format); - if (input != NULL) free(input); - if (output != NULL) free(output); - if (preset_name != NULL) free(preset_name); - if (x264_preset != NULL) free(x264_preset); - if (x264_tune != NULL) free(x264_tune); - if (advanced_opts != NULL) free(advanced_opts); - if (x264_profile != NULL) free(x264_profile); - if (h264_level != NULL) free(h264_level); + str_vfree(abitrates); + str_vfree(acompressions); + str_vfree(aqualities); + free(acodecs); + free(arates); + free(atracks); + free(audio_gain); + free(dynamic_range_compression); + free(mixdowns); + free(native_language); + free(format); + free(input); + free(output); + free(preset_name); + free(x264_preset); + free(x264_tune); + free(advanced_opts); + free(x264_profile); + free(h264_level); // write a carriage return to stdout // avoids overlap / line wrapping when stderr is redirected |