diff options
author | kwm <kwm@FreeBSD.org> | 2015-08-14 01:45:06 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2015-08-14 01:45:06 +0800 |
commit | f92a25d9c47c3a678ddfad0d618f762eb496ec9a (patch) | |
tree | c9de01ef04784915b5a77d0659e65eea6f074ea4 /devel/libgtop | |
parent | 0c415575ccce9c394cd1474ec380e190c26185cd (diff) | |
download | freebsd-ports-gnome-f92a25d9c47c3a678ddfad0d618f762eb496ec9a.tar.gz freebsd-ports-gnome-f92a25d9c47c3a678ddfad0d618f762eb496ec9a.tar.zst freebsd-ports-gnome-f92a25d9c47c3a678ddfad0d618f762eb496ec9a.zip |
Add gtk-doc annotations for the glibtop_init functions. Their return value
should not be freed. This fixes usage from gnome-instrospection (invalid free).
Submitted by: Ting-Wei Lan
Obtained from: upstream libgtop git 598764c
Diffstat (limited to 'devel/libgtop')
-rw-r--r-- | devel/libgtop/Makefile | 2 | ||||
-rw-r--r-- | devel/libgtop/files/patch-glibtop.h | 38 |
2 files changed, 39 insertions, 1 deletions
diff --git a/devel/libgtop/Makefile b/devel/libgtop/Makefile index 868bd8adafcd..735a708bdf9e 100644 --- a/devel/libgtop/Makefile +++ b/devel/libgtop/Makefile @@ -4,7 +4,7 @@ PORTNAME= libgtop PORTVERSION= 2.30.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= devel gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 diff --git a/devel/libgtop/files/patch-glibtop.h b/devel/libgtop/files/patch-glibtop.h new file mode 100644 index 000000000000..a85980e27cbe --- /dev/null +++ b/devel/libgtop/files/patch-glibtop.h @@ -0,0 +1,38 @@ +--- glibtop.h.orig 2015-08-13 19:30:44.824882000 +0200 ++++ glibtop.h 2015-08-13 19:30:04.376611000 +0200 +@@ -125,14 +125,35 @@ 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, |