Skip to content

Commit 314740d

Browse files
committed
And a potential fix
1 parent 4d3ce5e commit 314740d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/native/common/include/runtime-base/timing-internal.hh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace xamarin::android {
6565
time_point start;
6666
time_point end;
6767
TimingEventKind kind;
68-
std::unique_ptr<std::string> more_info;
68+
std::unique_ptr<std::string> more_info{};
6969
};
7070

7171
class FastTiming;
@@ -301,7 +301,9 @@ namespace xamarin::android {
301301
ev.start = get_time ();
302302
ev.kind = kind;
303303
ev.before_managed = MonodroidState::is_startup_in_progress ();
304-
ev.more_info = nullptr;
304+
if (ev.more_info) {
305+
ev.more_info.reset ();
306+
}
305307
log_warn (LOG_DEFAULT, "#grendel 5.011");
306308
}
307309

0 commit comments

Comments
 (0)