From 598764c171e446fb106624787de2db717c009f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Wed, 11 Mar 2015 14:44:29 +0100 Subject: [PATCH] Add gtk-doc annotations for the glibtop_init functions. Their return value should not be freed. This fixes usage from gnome-instrospection (invalid free). --- glibtop.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/glibtop.h b/glibtop.h index 0d3e7ddd..4ab947a6 100644 --- a/glibtop.h +++ b/glibtop.h @@ -126,14 +126,37 @@ extern glibtop *glibtop_global_server; extern const unsigned long glibtop_server_features; +/** + * glibtop_init: + * + * Returns: (transfer none): + */ glibtop * glibtop_init (void); + +/** + * glibtop_init_r: + * @server_ptr: (out): + * @features: + * @flags: + * + * Returns: (transfer none): + */ glibtop * glibtop_init_r (glibtop **server_ptr, unsigned long features, unsigned flags); + +/** + * glibtop_init_s: + * @server_ptr: (out): + * @features: + * @flags: + * + * Returns: (transfer none): + */ glibtop * glibtop_init_s (glibtop **server_ptr, unsigned long features,