mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Use sysprof_{steal,clear}_pointer() instead of GLib
They work exactly the same way as the GLib functions. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -820,7 +820,7 @@ sysprof_capture_reader_read_jitmap (SysprofCaptureReader *self)
|
||||
|
||||
self->pos += jitmap->frame.len;
|
||||
|
||||
return g_steal_pointer (&ret);
|
||||
return sysprof_steal_pointer (&ret);
|
||||
}
|
||||
|
||||
const SysprofCaptureSample *
|
||||
@ -1309,7 +1309,7 @@ sysprof_capture_reader_list_files (SysprofCaptureReader *self)
|
||||
g_ptr_array_add (ar, g_strdup (key));
|
||||
g_ptr_array_add (ar, NULL);
|
||||
|
||||
return (char **)g_ptr_array_free (g_steal_pointer (&ar), FALSE);
|
||||
return (char **)g_ptr_array_free (sysprof_steal_pointer (&ar), FALSE);
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user