summaryrefslogtreecommitdiffstats
path: root/vlc/build/wxGTK-2.6_borderfree.patch
blob: e925e45f79c3ade0c208a93dd6f9e56c6123f44b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
http://svn.wxwidgets.org/viewvc/wx?view=rev&revision=46513

gtk_border_free is for freeing GtkBorder's, not g_free.
Using g_free instead used to have no ill effects as gtk_border_free called
that anyway, but in gtk+-2.11 GtkBorder uses GSlice and gtk_border_free
therefore uses g_slice_free and using g_free makes things crash hard.
So fix it or wxGTK won't work with the gtk+-2.12 stable release.

Thanks to Keith Ritchie for pointing me to the patch.

--- src/gtk/button.cpp	2007/06/18 05:53:03	46512
+++ src/gtk/button.cpp	2007/06/18 06:03:50	46513
@@ -71,7 +71,7 @@
             right_border += default_border->right;
             top_border += default_border->top;
             bottom_border += default_border->bottom;
-            g_free( default_border );
+            gtk_border_free( default_border );
         }
         win->MoveWindow(
             win->m_x - top_border,
--- src/gtk/window.cpp	2007/06/18 05:53:03	46512
+++ src/gtk/window.cpp	2007/06/18 06:03:50	46513
@@ -2738,7 +2738,7 @@
                 right_border += default_border->right;
                 top_border += default_border->top;
                 bottom_border += default_border->bottom;
-                g_free( default_border );
+                gtk_border_free( default_border );
             }
         }