diff options
author | bland <bland@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-09-09 11:42:56 +0800 |
---|---|---|
committer | bland <bland@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-09-09 11:42:56 +0800 |
commit | 739be8a581fc21302566d5f94b0560f9e97df6bf (patch) | |
tree | 09f4473d96a466a2f01429f1a8a00b881b8d076a | |
parent | 67dde88a26aa3febff01176f159a0bb9545b37d8 (diff) | |
download | marcuscom-ports-739be8a581fc21302566d5f94b0560f9e97df6bf.tar marcuscom-ports-739be8a581fc21302566d5f94b0560f9e97df6bf.tar.gz marcuscom-ports-739be8a581fc21302566d5f94b0560f9e97df6bf.tar.bz2 marcuscom-ports-739be8a581fc21302566d5f94b0560f9e97df6bf.tar.lz marcuscom-ports-739be8a581fc21302566d5f94b0560f9e97df6bf.tar.xz marcuscom-ports-739be8a581fc21302566d5f94b0560f9e97df6bf.tar.zst marcuscom-ports-739be8a581fc21302566d5f94b0560f9e97df6bf.zip |
Plug memory leak introduced by de-C99-fication.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4805 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | graphics/librsvg2/Makefile | 3 | ||||
-rw-r--r-- | graphics/librsvg2/files/patch-rsvg-shapes.c | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile index b47ffa42f..a439d3306 100644 --- a/graphics/librsvg2/Makefile +++ b/graphics/librsvg2/Makefile @@ -3,11 +3,12 @@ # Whom: Ade Lovett <ade@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/graphics/librsvg2/Makefile,v 1.62 2005/08/29 16:13:28 marcus Exp $ +# $MCom: ports/graphics/librsvg2/Makefile,v 1.63 2005/09/03 18:44:22 kwm Exp $ # PORTNAME= librsvg2 PORTVERSION= 2.11.1 +PORTREVISION= 1 CATEGORIES= graphics gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.11 diff --git a/graphics/librsvg2/files/patch-rsvg-shapes.c b/graphics/librsvg2/files/patch-rsvg-shapes.c index d91bf5083..db42d9f45 100644 --- a/graphics/librsvg2/files/patch-rsvg-shapes.c +++ b/graphics/librsvg2/files/patch-rsvg-shapes.c @@ -1,17 +1,18 @@ ---- rsvg-shapes.c.orig Thu Aug 25 22:32:03 2005 -+++ rsvg-shapes.c Thu Aug 25 22:32:13 2005 -@@ -145,12 +145,12 @@ _rsvg_node_poly_draw(RsvgNode * self, Rs +--- rsvg-shapes.c.orig Tue Jul 19 23:47:27 2005 ++++ rsvg-shapes.c Fri Sep 9 12:34:17 2005 +@@ -145,12 +145,13 @@ int dominate) { RsvgNodePoly * poly = (RsvgNodePoly *)self; + gsize i; -+ GString * d = g_string_new (""); ++ GString * d; /* represent as a "moveto, lineto*, close" path */ if (poly->pointlist_len < 2) return; - gsize i; - GString * d = g_string_new (""); ++ d = g_string_new (""); g_string_append_printf (d, "M %f %f ", poly->pointlist[0], poly->pointlist[1] ); for (i = 2; i < poly->pointlist_len; i += 2) |