libsysprof-analyze: ensure pid info structure for exit time

This commit is contained in:
Christian Hergert
2023-07-17 12:26:09 -07:00
parent c1cfc1e210
commit 68abadbdd8

View File

@ -1294,10 +1294,9 @@ sysprof_document_load_worker (GTask *task,
}
else if (tainted->type == SYSPROF_CAPTURE_FRAME_EXIT)
{
SysprofProcessInfo *info = g_hash_table_lookup (self->pid_to_process_info, GINT_TO_POINTER (pid));
SysprofProcessInfo *info = _sysprof_document_process_info (self, pid, TRUE);
if (info != NULL)
info->exit_time = t;
info->exit_time = t;
}
else if (tainted->type == SYSPROF_CAPTURE_FRAME_MARK)
{