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:
@ -30,6 +30,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "sysprof-capture-util-private.h"
|
||||
#include "sysprof-macros-internal.h"
|
||||
#include "sysprof-platform.h"
|
||||
|
||||
#include "mapped-ring-buffer.h"
|
||||
@ -214,7 +215,7 @@ mapped_ring_buffer_new_reader (size_t buffer_size)
|
||||
self->map = map;
|
||||
self->page_size = page_size;
|
||||
|
||||
return g_steal_pointer (&self);
|
||||
return sysprof_steal_pointer (&self);
|
||||
}
|
||||
|
||||
MappedRingBuffer *
|
||||
@ -319,7 +320,7 @@ mapped_ring_buffer_new_writer (int fd)
|
||||
self->map = map;
|
||||
self->page_size = page_size;
|
||||
|
||||
return g_steal_pointer (&self);
|
||||
return sysprof_steal_pointer (&self);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user