From ebdda339174c30e1b4485ed858928b3db500b03e Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 24 Mar 2004 04:11:16 +0000 Subject: Destroy the css_handler before destroying the parser to prevent a double free. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2178 df743ca5-7f9a-e211-a948-0013205c9059 --- graphics/librsvg2/Makefile | 1 + graphics/librsvg2/files/patch-rsvg-styles.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 graphics/librsvg2/files/patch-rsvg-styles.c diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile index 68822b540..899e98c78 100644 --- a/graphics/librsvg2/Makefile +++ b/graphics/librsvg2/Makefile @@ -7,6 +7,7 @@ PORTNAME= librsvg2 PORTVERSION= 2.6.3 +PORTREVISION= 1 CATEGORIES= graphics gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.6 diff --git a/graphics/librsvg2/files/patch-rsvg-styles.c b/graphics/librsvg2/files/patch-rsvg-styles.c new file mode 100644 index 000000000..6e7eee133 --- /dev/null +++ b/graphics/librsvg2/files/patch-rsvg-styles.c @@ -0,0 +1,21 @@ +--- rsvg-styles.c.orig Tue Mar 23 23:04:27 2004 ++++ rsvg-styles.c Tue Mar 23 23:04:36 2004 +@@ -553,16 +553,16 @@ + if (status != CR_OK) + { + g_warning ("Error setting CSS SAC handler\n"); +- cr_parser_destroy (parser); + cr_doc_handler_destroy (css_handler); ++ cr_parser_destroy (parser); + return; + } + + status = cr_parser_set_use_core_grammar (parser, FALSE); + status = cr_parser_parse (parser); + +- cr_parser_destroy (parser); + cr_doc_handler_destroy (css_handler); ++ cr_parser_destroy (parser); + } + + #else /* !HAVE_LIBCROCO */ -- cgit v1.2.3