1 |
remi 08/05/31 13:13:57 |
2 |
|
3 |
Added: gtk+extra-2.1.1-fix-row-deletion-segfault.patch |
4 |
gtk+extra-2.1.1-glib2.10-full-fix.patch |
5 |
Log: |
6 |
x11-libs/gtk+extra: add patches to fix segfaults, see bug #219777 |
7 |
(Portage version: 2.1.5.2) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 x11-libs/gtk+extra/files/gtk+extra-2.1.1-fix-row-deletion-segfault.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+extra/files/gtk+extra-2.1.1-fix-row-deletion-segfault.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+extra/files/gtk+extra-2.1.1-fix-row-deletion-segfault.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: gtk+extra-2.1.1-fix-row-deletion-segfault.patch |
16 |
=================================================================== |
17 |
diff -ur gtk+extra/gtkextra/gtksheet.c gtk+extra-2.1.1/gtkextra/gtksheet.c |
18 |
--- gtk+extra/gtkextra/gtksheet.c 2008-02-01 01:04:09.000000000 +0100 |
19 |
+++ gtk+extra-2.1.1/gtkextra/gtksheet.c 2008-02-01 01:08:52.000000000 +0100 |
20 |
@@ -7956,11 +7956,10 @@ |
21 |
} |
22 |
|
23 |
tbl->maxallocrow-=MIN(nrows,tbl->maxallocrow-row+1); |
24 |
- tbl->maxallocrow = MIN(tbl->maxallocrow, tbl->maxrow); |
25 |
- |
26 |
} |
27 |
|
28 |
tbl->maxrow-=nrows; |
29 |
+ tbl->maxallocrow = MIN(tbl->maxallocrow, tbl->maxrow); |
30 |
gtk_sheet_recalc_top_ypixels(tbl, 0); |
31 |
return TRUE; |
32 |
} |
33 |
|
34 |
|
35 |
|
36 |
1.1 x11-libs/gtk+extra/files/gtk+extra-2.1.1-glib2.10-full-fix.patch |
37 |
|
38 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+extra/files/gtk+extra-2.1.1-glib2.10-full-fix.patch?rev=1.1&view=markup |
39 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+extra/files/gtk+extra-2.1.1-glib2.10-full-fix.patch?rev=1.1&content-type=text/plain |
40 |
|
41 |
Index: gtk+extra-2.1.1-glib2.10-full-fix.patch |
42 |
=================================================================== |
43 |
--- gtkextra/gtksheet.c.orig 2005-06-24 19:51:00.000000000 +0200 |
44 |
+++ gtkextra/gtksheet.c 2007-10-19 15:13:42.000000000 +0200 |
45 |
@@ -2738,7 +2738,7 @@ |
46 |
gdk_window_destroy (sheet->row_title_window); |
47 |
|
48 |
if (sheet->pixmap){ |
49 |
- g_free (sheet->pixmap); |
50 |
+ g_object_unref (sheet->pixmap); |
51 |
sheet->pixmap = NULL; |
52 |
} |
53 |
|
54 |
@@ -4149,7 +4149,7 @@ |
55 |
&pixmap_width, &pixmap_height); |
56 |
if ((pixmap_width != width) || (pixmap_height != height)) |
57 |
{ |
58 |
- g_free(sheet->pixmap); |
59 |
+ g_object_unref(sheet->pixmap); |
60 |
sheet->pixmap = gdk_pixmap_new (sheet->sheet_window, |
61 |
width, height, |
62 |
-1); |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
-- |
68 |
gentoo-commits@l.g.o mailing list |