From c06e5f6e4d5b112cfbdcb23311b39f5b5258a3fe Mon Sep 17 00:00:00 2001 From: "Leonid V. Fedorenchik" Date: Mon, 19 Jan 2015 10:01:35 -0500 Subject: [PATCH] Bug 1110874 - Delete payload passed to PROFILER_MARKER_PAYLOAD. r=kats --- tools/profiler/GeckoProfiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/profiler/GeckoProfiler.h b/tools/profiler/GeckoProfiler.h index 35112769bcf..6c6c6fcf57d 100644 --- a/tools/profiler/GeckoProfiler.h +++ b/tools/profiler/GeckoProfiler.h @@ -88,7 +88,7 @@ enum TracingMetadata { // only recorded if a sample is collected while it is active, marker will always // be collected. #define PROFILER_MARKER(info) do {} while (0) -#define PROFILER_MARKER_PAYLOAD(info, payload) do {} while (0) +#define PROFILER_MARKER_PAYLOAD(info, payload) do { nsAutoPtr payloadDeletor(payload); } while (0) // Main thread specilization to avoid TLS lookup for performance critical use. #define PROFILER_MAIN_THREAD_LABEL(name_space, info, category) do {} while (0)