diff options
119 files changed, 277 insertions, 481 deletions
diff --git a/TOOLS/vfw2menc.c b/TOOLS/vfw2menc.c index bdeb960351..760b6950c9 100644 --- a/TOOLS/vfw2menc.c +++ b/TOOLS/vfw2menc.c @@ -295,9 +295,9 @@ int main(int argc, char *argv[]) } cleanup: - if (driver) free(driver); - if (fourcc) free(fourcc); - if (filename) free(filename); + free(driver); + free(fourcc); + free(filename); if (hDriver) CloseDriver(hDriver, 0, 0); if ((coinit == S_OK) || coinit == S_FALSE) CoUninitialize(); return ret; diff --git a/input/ar.c b/input/ar.c index a71f3d3eb4..d7cac43178 100644 --- a/input/ar.c +++ b/input/ar.c @@ -277,8 +277,7 @@ int mp_input_ar_init(void) (*queue)->addElement(queue, cookies[i], 0); // not used anymore - if (cookies != NULL) - free(cookies); + free(cookies); // Start data delivery to the queue. (*queue)->start(queue); @@ -290,8 +289,7 @@ int mp_input_ar_init(void) return 0; mp_input_ar_init_error: - if (cookies != NULL) - free(cookies); + free(cookies); |