use correct function to free GtkTextAttributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1753,7 +1753,7 @@ bool wxTextCtrl::GetStyle(long position, wxTextAttr& style)
|
|||||||
// Obtain a copy of the default attributes
|
// Obtain a copy of the default attributes
|
||||||
GtkTextAttributes * const
|
GtkTextAttributes * const
|
||||||
pattr = gtk_text_view_get_default_attributes(GTK_TEXT_VIEW(m_text));
|
pattr = gtk_text_view_get_default_attributes(GTK_TEXT_VIEW(m_text));
|
||||||
wxON_BLOCK_EXIT1( g_free, pattr );
|
wxON_BLOCK_EXIT1(gtk_text_attributes_unref, pattr);
|
||||||
|
|
||||||
// And query GTK for the attributes at the given position using it as base
|
// And query GTK for the attributes at the given position using it as base
|
||||||
if ( !gtk_text_iter_get_attributes(&positioni, pattr) )
|
if ( !gtk_text_iter_get_attributes(&positioni, pattr) )
|
||||||
|
Reference in New Issue
Block a user