mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
libysysprof-analyze: make ref string transfer full
No reason to have extra unref's by the caller for these.
This commit is contained in:
@ -140,16 +140,16 @@ sysprof_symbol_get_binary_path (SysprofSymbol *self)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SysprofSymbol *
|
SysprofSymbol *
|
||||||
_sysprof_symbol_new (char *name,
|
_sysprof_symbol_new (GRefString *name,
|
||||||
char *binary_path,
|
GRefString *binary_path,
|
||||||
char *binary_nick)
|
GRefString *binary_nick)
|
||||||
{
|
{
|
||||||
SysprofSymbol *self;
|
SysprofSymbol *self;
|
||||||
|
|
||||||
self = g_object_new (SYSPROF_TYPE_SYMBOL, NULL);
|
self = g_object_new (SYSPROF_TYPE_SYMBOL, NULL);
|
||||||
self->name = name ? g_ref_string_acquire (name) : NULL;
|
self->name = name;
|
||||||
self->binary_path = binary_path ? g_ref_string_acquire (binary_path) : NULL;
|
self->binary_path = binary_path;
|
||||||
self->binary_nick = binary_nick ? g_ref_string_acquire (binary_nick) : NULL;
|
self->binary_nick = binary_nick;
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user