[sysprof/wip/chergert/sysprof-3] libsysprof: make sure we have a SysprofSource
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] libsysprof: make sure we have a SysprofSource
- Date: Fri, 24 May 2019 01:12:31 +0000 (UTC)
commit caaeda93afeb36b4a706fe73775fae72103e636f
Author: Christian Hergert <chergert redhat com>
Date: Thu May 23 18:12:23 2019 -0700
libsysprof: make sure we have a SysprofSource
src/libsysprof/sysprof-local-profiler.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libsysprof/sysprof-local-profiler.c b/src/libsysprof/sysprof-local-profiler.c
index 836e514..2637c97 100644
--- a/src/libsysprof/sysprof-local-profiler.c
+++ b/src/libsysprof/sysprof-local-profiler.c
@@ -1031,6 +1031,7 @@ sysprof_local_profiler_new_replay (SysprofCaptureReader *reader)
if (!g_key_file_has_group (keyfile, group) ||
!(type_name = g_key_file_get_string (keyfile, group, "gtype", NULL)) ||
!(gtype = g_type_from_name (type_name)) ||
+ !g_type_is_a (gtype, SYSPROF_TYPE_SOURCE) ||
!(source = g_object_new (gtype, NULL)))
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]