diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index e9b395f835..71cfd13497 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -71,7 +71,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, diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 7b24565135..5ccb022670 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2738,7 +2738,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 ); } }