summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-12-04 01:45:06 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-12-04 01:45:06 +0800
commit3b52ad63e2e08f350411f2d994e6862e09d1e636 (patch)
treea96da7c99e6d684f082d382c79f0f0857d59fc12 /x11
parenteea966b5f04ee668e869b60bc40b96e80a05fa79 (diff)
downloadmarcuscom-ports-3b52ad63e2e08f350411f2d994e6862e09d1e636.tar
marcuscom-ports-3b52ad63e2e08f350411f2d994e6862e09d1e636.tar.gz
marcuscom-ports-3b52ad63e2e08f350411f2d994e6862e09d1e636.tar.bz2
marcuscom-ports-3b52ad63e2e08f350411f2d994e6862e09d1e636.tar.lz
marcuscom-ports-3b52ad63e2e08f350411f2d994e6862e09d1e636.tar.xz
marcuscom-ports-3b52ad63e2e08f350411f2d994e6862e09d1e636.tar.zst
marcuscom-ports-3b52ad63e2e08f350411f2d994e6862e09d1e636.zip
Fix a bogus free().
Reported by: Jeremy Messenger <mezz7@cox.net> git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1390 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11')
-rw-r--r--x11/yelp/Makefile1
-rw-r--r--x11/yelp/files/patch-src_yelp-db-pager.c23
2 files changed, 24 insertions, 0 deletions
diff --git a/x11/yelp/Makefile b/x11/yelp/Makefile
index ac7dc93c5..d725a7c60 100644
--- a/x11/yelp/Makefile
+++ b/x11/yelp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= yelp
PORTVERSION= 2.5.0
+PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.5
diff --git a/x11/yelp/files/patch-src_yelp-db-pager.c b/x11/yelp/files/patch-src_yelp-db-pager.c
new file mode 100644
index 000000000..9d872261e
--- /dev/null
+++ b/x11/yelp/files/patch-src_yelp-db-pager.c
@@ -0,0 +1,23 @@
+--- src/yelp-db-pager.c.orig Wed Dec 3 12:37:53 2003
++++ src/yelp-db-pager.c Wed Dec 3 12:42:28 2003
+@@ -544,9 +544,9 @@
+ xmlNodePtr cur;
+
+ if (xml_is_info (node))
+- title = _("Titlepage");
++ title = g_strdup (_("Titlepage"));
+ else if (node->parent->type == XML_DOCUMENT_NODE)
+- title = _("Contents");
++ title = g_strdup (_("Contents"));
+ else {
+ for (cur = node->children; cur; cur = cur->next) {
+ if (!xmlStrcmp (cur->name, (xmlChar *) "title")) {
+@@ -564,7 +564,7 @@
+ }
+
+ if (!title)
+- title = _("Unknown");
++ title = g_strdup (_("Unknown"));
+
+ return title;
+ }