summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2008-07-05 07:04:21 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2008-07-05 07:04:21 +0000
commitd4e640af90a6aff4a2d3a7667370861bf0b22d0c (patch)
tree93ba97900fce66d4744ed4a3cc35eacbd6b6cd40 /media-sound/lingot
parentFix default configuration layout (upstream), thanks to Emil Karlson and Silve... (diff)
downloadhistorical-d4e640af90a6aff4a2d3a7667370861bf0b22d0c.tar.gz
historical-d4e640af90a6aff4a2d3a7667370861bf0b22d0c.tar.bz2
historical-d4e640af90a6aff4a2d3a7667370861bf0b22d0c.zip
Fix memory leak (upstream mailing list), thanks to Carlos Laue. Bug 228643.
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.26-rc3 x86_64
Diffstat (limited to 'media-sound/lingot')
-rw-r--r--media-sound/lingot/ChangeLog7
-rw-r--r--media-sound/lingot/Manifest5
-rw-r--r--media-sound/lingot/files/lingot-0.7.6-memory_leak.patch31
-rw-r--r--media-sound/lingot/lingot-0.7.6.ebuild5
4 files changed, 43 insertions, 5 deletions
diff --git a/media-sound/lingot/ChangeLog b/media-sound/lingot/ChangeLog
index 20ef723eaba6..450a85d6aca6 100644
--- a/media-sound/lingot/ChangeLog
+++ b/media-sound/lingot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/lingot
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lingot/ChangeLog,v 1.3 2008/05/27 14:02:52 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lingot/ChangeLog,v 1.4 2008/07/05 07:04:20 drac Exp $
+
+ 05 Jul 2008; Samuli Suominen <drac@gentoo.org>
+ +files/lingot-0.7.6-memory_leak.patch, lingot-0.7.6.ebuild:
+ Fix memory leak (upstream mailing list), thanks to Carlos Laue. Bug
+ 228643.
27 May 2008; Samuli Suominen <drac@gentoo.org> lingot-0.7.6.ebuild:
Typing error libgotdocdir to lingotdocdir in src_install
diff --git a/media-sound/lingot/Manifest b/media-sound/lingot/Manifest
index 100bca851c5f..43cd3b3e8ba7 100644
--- a/media-sound/lingot/Manifest
+++ b/media-sound/lingot/Manifest
@@ -1,5 +1,6 @@
AUX lingot-0.7.6-clean-install.patch 527 RMD160 df2700df4055cef8563d7b1a621dce93ca8c5174 SHA1 ad5342d7b1db69cb1f06d17b571bc02875b75d9a SHA256 6dbd67dfea0e0f3b493884ca8f39df90f025d79d24bf4c0149bc8a8bfece54a6
+AUX lingot-0.7.6-memory_leak.patch 1231 RMD160 3b0c4f4d67575df16c0c5239f692f25445f02c01 SHA1 bd0397efcb3f32fd4d3fb8bd3547ef29c117ed7e SHA256 e530e2549712c0eeafe0240ca8b347197a082a3eb9f48740533cef58dba54bef
DIST lingot-0.7.6.tar.gz 421899 RMD160 cbb9617752a59ec617664be3496a905d1ea7abcf SHA1 7e0eb3d28f59c3ef9fcdaf47503747ce5029732d SHA256 0fe863b4f02d94809f27afe846a617db3f665c7088cac61a3304a5ea897747b2
-EBUILD lingot-0.7.6.ebuild 905 RMD160 e9060040bbe2bc33f7902a5254ee860413ec40d9 SHA1 ced19b34176d775748c74a4de7b39ac8dac360bc SHA256 010a827d67e73470a3f397bbfb3f89495edc7ab873770ec15303ba8c832b6ee5
-MISC ChangeLog 621 RMD160 5ec9089b962e86314acb07e094a0842f9d58301e SHA1 e233efb85e693eadb6713a010ab2a25b4198ae23 SHA256 97951d5adc88fb37cd66d0220879404403fc0b6e1fd59da4cc2f3cc67b77865f
+EBUILD lingot-0.7.6.ebuild 946 RMD160 3166a049b523c0e19a05d09fe525dd8024c40b88 SHA1 014724307892ebd72f718b6537f0120cf0db4c15 SHA256 e5842b27b9d686c4def9ccf3522dc7d0392df3cc48c34cdd2e10499ac9ae7043
+MISC ChangeLog 813 RMD160 1ff57ecca50bd526c104927e2767e2ec7a165a9b SHA1 76323026e75f351d7b01237d6c3ea78540dcff04 SHA256 7d4f804122a61cf113b3c1690828b0a48565db236cbaf3e4cd1caf8bdb090f71
MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
diff --git a/media-sound/lingot/files/lingot-0.7.6-memory_leak.patch b/media-sound/lingot/files/lingot-0.7.6-memory_leak.patch
new file mode 100644
index 000000000000..182b77d35666
--- /dev/null
+++ b/media-sound/lingot/files/lingot-0.7.6-memory_leak.patch
@@ -0,0 +1,31 @@
+--- lingot-0.7.6.orig/src/lingot-mainframe.c 2007-12-19 23:54:08.000000000 +0100
++++ lingot-0.7.6/src/lingot-mainframe.c 2008-06-21 00:01:23.000000000 +0200
+@@ -592,6 +592,8 @@
+ pango_layout_set_font_description(layout, spectrum_legend_font_desc);
+ gdk_draw_layout(window, gc, spectrum_x_margin - 8 + i, spectrum_size_y
+ + spectrum_top_margin + 5, layout);
++ g_object_unref(layout);
++
+ freq += scale;
+ }
+
+@@ -602,7 +604,8 @@
+ layout = gtk_widget_create_pango_layout(frame->spectrum_area, buff);
+ pango_layout_set_font_description(layout, spectrum_legend_font_desc);
+ gdk_draw_layout(window, gc, spectrum_x_margin - 6, 2, layout);
+-
++ g_object_unref(layout);
++
+ int grid_height = (int) (PLOT_GAIN*log10(pow(10.0, grid_db_height/10.0))); // dB.
+ j = 0;
+ for (i = 0; i <= spectrum_size_y; i += grid_height) {
+@@ -615,7 +618,8 @@
+ pango_layout_set_font_description(layout, spectrum_legend_font_desc);
+ gdk_draw_layout(window, gc, 2, spectrum_size_y + spectrum_top_margin
+ - i - 5, layout);
+-
++ g_object_unref(layout);
++
+ gdk_draw_line(window, gc, spectrum_x_margin, spectrum_size_y
+ + spectrum_top_margin - i, spectrum_x_margin + spectrum_size_x,
+ spectrum_size_y + spectrum_top_margin - i);
diff --git a/media-sound/lingot/lingot-0.7.6.ebuild b/media-sound/lingot/lingot-0.7.6.ebuild
index 67116ecbdfd7..a347aa978c01 100644
--- a/media-sound/lingot/lingot-0.7.6.ebuild
+++ b/media-sound/lingot/lingot-0.7.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lingot/lingot-0.7.6.ebuild,v 1.3 2008/05/27 14:02:52 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lingot/lingot-0.7.6.ebuild,v 1.4 2008/07/05 07:04:20 drac Exp $
WANT_AUTOMAKE=1.9
@@ -24,7 +24,8 @@ DEPEND="${RDEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
- epatch "${FILESDIR}"/${P}-clean-install.patch
+ epatch "${FILESDIR}"/${P}-clean-install.patch \
+ "${FILESDIR}"/${P}-memory_leak.patch
eautomake
}