mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: add missing autoptr cleanup funcs
This commit is contained in:
@ -43,4 +43,6 @@ int sysprof_document_allocation_get_tid (SysprofDocumentAllocation *sel
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sysprof_document_allocation_is_free (SysprofDocumentAllocation *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentAllocation, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@ -35,5 +35,7 @@ typedef struct _SysprofDocumentExitClass SysprofDocumentExitClass;
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GType sysprof_document_exit_get_type (void) G_GNUC_CONST;
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentExit, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@ -37,5 +37,7 @@ GType sysprof_document_fork_get_type (void) G_GNUC_CONST;
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
int sysprof_document_fork_get_child_pid (SysprofDocumentFork *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentFork, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include <sysprof-capture.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SYSPROF_TYPE_DOCUMENT_FRAME (sysprof_document_frame_get_type())
|
||||
@ -41,4 +43,6 @@ int sysprof_document_frame_get_pid (SysprofDocumentFrame *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gint64 sysprof_document_frame_get_time (SysprofDocumentFrame *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentFrame, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@ -41,4 +41,6 @@ GLogLevelFlags sysprof_document_log_get_severity (SysprofDocumentLog *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
const char *sysprof_document_log_get_domain (SysprofDocumentLog *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentLog, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@ -43,5 +43,7 @@ const char *sysprof_document_mark_get_name (SysprofDocumentMark *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
const char *sysprof_document_mark_get_message (SysprofDocumentMark *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentMark, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@ -39,5 +39,7 @@ const char *sysprof_document_metadata_get_id (SysprofDocumentMetadata *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
const char *sysprof_document_metadata_get_value (SysprofDocumentMetadata *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentMetadata, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@ -46,4 +46,6 @@ guint64 sysprof_document_mmap_get_file_offset (SysprofDocumentMmap *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
const char *sysprof_document_mmap_get_file (SysprofDocumentMmap *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentMmap, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@ -37,5 +37,7 @@ GType sysprof_document_process_get_type (void) G_GNUC_CONST;
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
const char *sysprof_document_process_get_command_line (SysprofDocumentProcess *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentProcess, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@ -39,4 +39,6 @@ guint sysprof_document_sample_get_depth (SysprofDocumentSample *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
int sysprof_document_sample_get_tid (SysprofDocumentSample *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentSample, g_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user