diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index 35e0b4f537..b0d9a4a613 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -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, diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index d65e1a1ab1..a8955a5791 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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 ); } }