1 |
drac 08/07/05 07:04:21 |
2 |
|
3 |
Added: lingot-0.7.6-memory_leak.patch |
4 |
Log: |
5 |
Fix memory leak (upstream mailing list), thanks to Carlos Laue. Bug 228643. |
6 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc3 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-sound/lingot/files/lingot-0.7.6-memory_leak.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lingot/files/lingot-0.7.6-memory_leak.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lingot/files/lingot-0.7.6-memory_leak.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: lingot-0.7.6-memory_leak.patch |
15 |
=================================================================== |
16 |
--- lingot-0.7.6.orig/src/lingot-mainframe.c 2007-12-19 23:54:08.000000000 +0100 |
17 |
+++ lingot-0.7.6/src/lingot-mainframe.c 2008-06-21 00:01:23.000000000 +0200 |
18 |
@@ -592,6 +592,8 @@ |
19 |
pango_layout_set_font_description(layout, spectrum_legend_font_desc); |
20 |
gdk_draw_layout(window, gc, spectrum_x_margin - 8 + i, spectrum_size_y |
21 |
+ spectrum_top_margin + 5, layout); |
22 |
+ g_object_unref(layout); |
23 |
+ |
24 |
freq += scale; |
25 |
} |
26 |
|
27 |
@@ -602,7 +604,8 @@ |
28 |
layout = gtk_widget_create_pango_layout(frame->spectrum_area, buff); |
29 |
pango_layout_set_font_description(layout, spectrum_legend_font_desc); |
30 |
gdk_draw_layout(window, gc, spectrum_x_margin - 6, 2, layout); |
31 |
- |
32 |
+ g_object_unref(layout); |
33 |
+ |
34 |
int grid_height = (int) (PLOT_GAIN*log10(pow(10.0, grid_db_height/10.0))); // dB. |
35 |
j = 0; |
36 |
for (i = 0; i <= spectrum_size_y; i += grid_height) { |
37 |
@@ -615,7 +618,8 @@ |
38 |
pango_layout_set_font_description(layout, spectrum_legend_font_desc); |
39 |
gdk_draw_layout(window, gc, 2, spectrum_size_y + spectrum_top_margin |
40 |
- i - 5, layout); |
41 |
- |
42 |
+ g_object_unref(layout); |
43 |
+ |
44 |
gdk_draw_line(window, gc, spectrum_x_margin, spectrum_size_y |
45 |
+ spectrum_top_margin - i, spectrum_x_margin + spectrum_size_x, |
46 |
spectrum_size_y + spectrum_top_margin - i); |
47 |
|
48 |
|
49 |
|
50 |
-- |
51 |
gentoo-commits@l.g.o mailing list |