diff options
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/main.c b/player/main.c index 8894988e99..1c8c8014b1 100644 --- a/player/main.c +++ b/player/main.c @@ -266,7 +266,9 @@ struct MPContext *mp_create(void) } char *enable_talloc = getenv("MPV_LEAK_REPORT"); - if (enable_talloc && strcmp(enable_talloc, "1") == 0) + if (!enable_talloc) + enable_talloc = HAVE_TA_LEAK_REPORT ? "1" : "0"; + if (strcmp(enable_talloc, "1") == 0) talloc_enable_leak_report(); mp_time_init(); |