]> git.saurik.com Git - wxWidgets.git/commitdiff
use correct function to free GtkTextAttributes
authorPaul Cornett <paulcor@bullseye.com>
Fri, 11 Nov 2011 16:38:48 +0000 (16:38 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 11 Nov 2011 16:38:48 +0000 (16:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp

index ae9f03cd169cf382219b3c30f3437857deead9bf..6920e299b687104cc4f6f68c022ccfd051bcf781 100644 (file)
@@ -1753,7 +1753,7 @@ bool wxTextCtrl::GetStyle(long position, wxTextAttr& style)
     // Obtain a copy of the default attributes
     GtkTextAttributes * const
         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
     if ( !gtk_text_iter_get_attributes(&positioni, pattr) )