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)