From 7613dc9f9616798874ff1aad2f4ed9aacf626a81 Mon Sep 17 00:00:00 2001 From: bland Date: Tue, 13 Sep 2005 14:22:35 +0000 Subject: Fix use after free() git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4835 df743ca5-7f9a-e211-a948-0013205c9059 --- x11-toolkits/gtk20/Makefile | 4 ++-- x11-toolkits/gtk20/files/patch-gtk__updateiconcache.c | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 x11-toolkits/gtk20/files/patch-gtk__updateiconcache.c diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index 163413090..7419c4095 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -3,12 +3,12 @@ # Whom: Vanilla I. Shu # # $FreeBSD$ -# $MCom: ports/x11-toolkits/gtk20/Makefile,v 1.72 2005/09/03 03:06:00 ahze Exp $ +# $MCom: ports/x11-toolkits/gtk20/Makefile,v 1.73 2005/09/10 14:40:01 jylefort Exp $ # PORTNAME= gtk PORTVERSION= 2.8.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/2.8,} \ ftp://ftp.gtk.org/pub/gtk/v2.8/ \ diff --git a/x11-toolkits/gtk20/files/patch-gtk__updateiconcache.c b/x11-toolkits/gtk20/files/patch-gtk__updateiconcache.c new file mode 100644 index 000000000..d8773a4e1 --- /dev/null +++ b/x11-toolkits/gtk20/files/patch-gtk__updateiconcache.c @@ -0,0 +1,13 @@ +--- gtk/updateiconcache.c Tue Sep 13 22:59:51 2005 ++++ gtk/updateiconcache.c.orig Tue Sep 13 22:58:33 2005 +@@ -144,9 +144,9 @@ + if (image->flags == HAS_ICON_FILE) + { + g_free (key); ++ g_free (image); + g_free (image->attach_points); + g_strfreev (image->display_names); +- g_free (image); + + return TRUE; + } -- cgit v1.2.3