mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
libsysprof: make sure we have a SysprofSource
This commit is contained in:
@ -1031,6 +1031,7 @@ sysprof_local_profiler_new_replay (SysprofCaptureReader *reader)
|
|||||||
if (!g_key_file_has_group (keyfile, group) ||
|
if (!g_key_file_has_group (keyfile, group) ||
|
||||||
!(type_name = g_key_file_get_string (keyfile, group, "gtype", NULL)) ||
|
!(type_name = g_key_file_get_string (keyfile, group, "gtype", NULL)) ||
|
||||||
!(gtype = g_type_from_name (type_name)) ||
|
!(gtype = g_type_from_name (type_name)) ||
|
||||||
|
!g_type_is_a (gtype, SYSPROF_TYPE_SOURCE) ||
|
||||||
!(source = g_object_new (gtype, NULL)))
|
!(source = g_object_new (gtype, NULL)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user