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 upcoming gtk+-2.12 stable release planned for end of July.
Hopefully we will release 2.8.5 by then...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2007-06-18 06:16:45 +00:00
parent 09632bb00c
commit 707dcbad73
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ gtk_button_style_set_callback( GtkWidget *m_widget, GtkStyle *WXUNUSED(style), w
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,

View File

@@ -2706,7 +2706,7 @@ void wxWindowGTK::DoSetSize( int x, int y, int width, int height, int sizeFlags
right_border += default_border->right;
top_border += default_border->top;
bottom_border += default_border->bottom;
g_free( default_border );
gtk_border_free( default_border );
}
}