diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-03-24 12:11:16 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-03-24 12:11:16 +0800 |
commit | ebdda339174c30e1b4485ed858928b3db500b03e (patch) | |
tree | 6963af81320730f18bafa3cad9aa22c59286eed5 /graphics | |
parent | d93ad138f2a1761a6584963afdb4d5e6eec46a47 (diff) | |
download | marcuscom-ports-ebdda339174c30e1b4485ed858928b3db500b03e.tar marcuscom-ports-ebdda339174c30e1b4485ed858928b3db500b03e.tar.gz marcuscom-ports-ebdda339174c30e1b4485ed858928b3db500b03e.tar.bz2 marcuscom-ports-ebdda339174c30e1b4485ed858928b3db500b03e.tar.lz marcuscom-ports-ebdda339174c30e1b4485ed858928b3db500b03e.tar.xz marcuscom-ports-ebdda339174c30e1b4485ed858928b3db500b03e.tar.zst marcuscom-ports-ebdda339174c30e1b4485ed858928b3db500b03e.zip |
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
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/librsvg2/Makefile | 1 | ||||
-rw-r--r-- | graphics/librsvg2/files/patch-rsvg-styles.c | 21 |
2 files changed, 22 insertions, 0 deletions
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 */ |