1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

options: support --leak-report (double dash form)

The special option --leak-report is manually checked so didn't
automatically get double-dash support. Update the test.
This commit is contained in:
Uoti Urpala 2011-08-08 07:58:21 +03:00
parent c6141b03f4
commit b4c90d78f0

View File

@ -3951,7 +3951,8 @@ int main(int argc, char *argv[])
pthread_win32_thread_attach_np();
atexit(detach_ptw32);
#endif
if (argc > 1 && !strcmp(argv[1], "-leak-report"))
if (argc > 1 && (!strcmp(argv[1], "-leak-report")
|| !strcmp(argv[1], "--leak-report")))
talloc_enable_leak_report();
char *mem_ptr;