summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-08 00:43:46 +0100
committerwm4 <wm4@nowhere>2019-11-08 00:43:46 +0100
commit53b7a10f5453083390e65bdab5f1e642c37d89a2 (patch)
treee3133852365244eab2e3f840707a51e7190e47dd /player
parent640b8532aaa26285fd1bcfaaa235f85f5a774e7b (diff)
downloadmpv-53b7a10f5453083390e65bdab5f1e642c37d89a2.tar.bz2
mpv-53b7a10f5453083390e65bdab5f1e642c37d89a2.tar.xz
wscript: add --enable-ta-leak-report option
Kind of more convenient because I'm lazy.
Diffstat (limited to 'player')
-rw-r--r--player/main.c4
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();