diff --git a/tools/memory-profiler/MemoryProfiler.cpp b/tools/memory-profiler/MemoryProfiler.cpp index 6f7a0b8894b..d367432d6c2 100644 --- a/tools/memory-profiler/MemoryProfiler.cpp +++ b/tools/memory-profiler/MemoryProfiler.cpp @@ -46,7 +46,7 @@ ProfilerImpl::GetStacktrace() profiler_get_backtrace_noalloc(output, BACKTRACE_BUFFER_SIZE); for (const char* p = output; *p; p += strlen(p) + 1) { - trace.AppendElement(nsDependentCString(p)); + trace.AppendElement()->Assign(p); } return trace;