mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-08 06:00:54 +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:
@ -65,6 +65,8 @@
|
||||
#include <sysprof-capture.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "sysprof-macros-internal.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint64_t src;
|
||||
@ -81,7 +83,7 @@ static void
|
||||
translate_table_clear (GArray **tables,
|
||||
unsigned int table)
|
||||
{
|
||||
g_clear_pointer (&tables[table], g_array_unref);
|
||||
sysprof_clear_pointer (&tables[table], g_array_unref);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user