mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 973899: Fix usage of temporary string that was causing crashes; r=ehsan
This commit is contained in:
parent
3acd1f0e68
commit
e725986f91
@ -36,12 +36,11 @@ void ProfilerIOInterposeObserver::Observe(Observation& aObservation)
|
||||
}
|
||||
ProfilerBacktrace* stack = profiler_get_backtrace();
|
||||
|
||||
const char *filename = (NS_ConvertUTF16toUTF8(aObservation.Filename())).get();
|
||||
|
||||
IOMarkerPayload* markerPayload = new IOMarkerPayload(aObservation.Reference(),
|
||||
filename,
|
||||
aObservation.Start(),
|
||||
aObservation.End(),
|
||||
stack);
|
||||
IOMarkerPayload* markerPayload = new IOMarkerPayload(
|
||||
aObservation.Reference(),
|
||||
NS_ConvertUTF16toUTF8(aObservation.Filename()).get(),
|
||||
aObservation.Start(),
|
||||
aObservation.End(),
|
||||
stack);
|
||||
PROFILER_MARKER_PAYLOAD(str, markerPayload);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user