mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: fix weak ref usage
This commit is contained in:
@ -80,7 +80,7 @@ sysprof_helpers_get_default (void)
|
|||||||
if (g_once_init_enter (&instance))
|
if (g_once_init_enter (&instance))
|
||||||
{
|
{
|
||||||
SysprofHelpers *self = g_object_new (SYSPROF_TYPE_HELPERS, NULL);
|
SysprofHelpers *self = g_object_new (SYSPROF_TYPE_HELPERS, NULL);
|
||||||
g_object_add_weak_pointer (G_OBJECT (instance), (gpointer *)&instance);
|
g_object_add_weak_pointer (G_OBJECT (self), (gpointer *)&instance);
|
||||||
g_once_init_leave (&instance, self);
|
g_once_init_leave (&instance, self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user