Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Aug 2015 17:45:07 +0000 (UTC)
From:      Koop Mast <kwm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r394176 - in head/devel/libgtop: . files
Message-ID:  <201508131745.t7DHj7K9061648@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kwm
Date: Thu Aug 13 17:45:06 2015
New Revision: 394176
URL: https://svnweb.freebsd.org/changeset/ports/394176

Log:
  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

Added:
  head/devel/libgtop/files/patch-glibtop.h   (contents, props changed)
Modified:
  head/devel/libgtop/Makefile

Modified: head/devel/libgtop/Makefile
==============================================================================
--- head/devel/libgtop/Makefile	Thu Aug 13 17:39:53 2015	(r394175)
+++ head/devel/libgtop/Makefile	Thu Aug 13 17:45:06 2015	(r394176)
@@ -4,7 +4,7 @@
 
 PORTNAME=	libgtop
 PORTVERSION=	2.30.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	devel gnome
 MASTER_SITES=	GNOME
 DIST_SUBDIR=	gnome2

Added: head/devel/libgtop/files/patch-glibtop.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libgtop/files/patch-glibtop.h	Thu Aug 13 17:45:06 2015	(r394176)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508131745.t7DHj7K9061648>