diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-01-31 01:22:17 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-01-31 01:23:09 -0600 |
commit | c82cf1b2e9ed3562f4a8482553fc4940b358909f (patch) | |
tree | fd95cbaf40275635fc39b6816a0ec998107e733d /main | |
parent | d58e8addbdb00c6888175a84e99e7a3b80335503 (diff) | |
download | aports-c82cf1b2e9ed3562f4a8482553fc4940b358909f.tar.bz2 aports-c82cf1b2e9ed3562f4a8482553fc4940b358909f.tar.xz |
main/audacious-plugins: backport memory leak fix from 2.5
Diffstat (limited to 'main')
-rw-r--r-- | main/audacious-plugins/APKBUILD | 8 | ||||
-rw-r--r-- | main/audacious-plugins/lyricwiki-memory-leak-fix.patch | 34 |
2 files changed, 39 insertions, 3 deletions
diff --git a/main/audacious-plugins/APKBUILD b/main/audacious-plugins/APKBUILD index 903055131..ec8ae99f8 100644 --- a/main/audacious-plugins/APKBUILD +++ b/main/audacious-plugins/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=audacious-plugins pkgver=2.4.3 -pkgrel=1 +pkgrel=2 pkgdesc="playlist-oriented media player with multiple interfaces (plugins)" url="http://audacious-media-player.org/" arch="all" @@ -45,7 +45,8 @@ makedepends="libmowgli-dev install= subpackages= source="http://distfiles.atheme.org/$pkgname-$pkgver.tgz - ffaudio-linker-fix.patch" + ffaudio-linker-fix.patch + lyricwiki-memory-leak-fix.patch" _builddir="$srcdir"/$pkgname-$pkgver @@ -85,4 +86,5 @@ package() { } md5sums="d2c76253e7a5d83dbd87319790f3c7a5 audacious-plugins-2.4.3.tgz -ce7f401fce3904e81ac8c190c92fb641 ffaudio-linker-fix.patch" +ce7f401fce3904e81ac8c190c92fb641 ffaudio-linker-fix.patch +2fece903e66869d86d10528e1c4cd58c lyricwiki-memory-leak-fix.patch" diff --git a/main/audacious-plugins/lyricwiki-memory-leak-fix.patch b/main/audacious-plugins/lyricwiki-memory-leak-fix.patch new file mode 100644 index 000000000..b5c78c9cb --- /dev/null +++ b/main/audacious-plugins/lyricwiki-memory-leak-fix.patch @@ -0,0 +1,34 @@ +# HG changeset patch +# User William Pitcock <nenolod@atheme.org> +# Date 1296458093 21600 +# Node ID 84dff6f177a9e286fa074dfbcb8e3f20722da88f +# Parent e55f7361877bc9d213413959f254b6c0de351553 +lyricwiki: memory leak cleanups + +diff -r e55f7361877b -r 84dff6f177a9 src/lyricwiki/lyricwiki.c +--- a/src/lyricwiki/lyricwiki.c Mon Jan 31 14:11:35 2011 +0900 ++++ b/src/lyricwiki/lyricwiki.c Mon Jan 31 01:14:53 2011 -0600 +@@ -120,10 +120,14 @@ + g_free(ret); + ret = NULL; + } ++ ++ g_regex_unref(reg); + } + + xmlFree(lyric); + } ++ ++ xmlFreeDoc(doc); + } + + return ret; +@@ -169,6 +173,8 @@ + xmlFree(lyric); + } + } ++ ++ xmlFreeDoc(doc); + } + + return uri; |