Fix memory leak in wxTextCtrl au_check_word that was triggered only with wxTE_AUTO_URL style

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2007-06-18 04:54:41 +00:00
parent 8eb3a3a923
commit 9ce97705fc

View File

@@ -428,7 +428,7 @@ au_check_word( GtkTextIter *s, GtkTextIter *e )
gtk_text_iter_backward_find_char( &end, pred_nonpunct_or_slash, NULL, &start );
gtk_text_iter_forward_char(&end);
gchar* text = gtk_text_iter_get_text( &start, &end );
wxGtkString text(gtk_text_iter_get_text( &start, &end ));
size_t len = strlen(text), prefix_len;
size_t n;