]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed double free crash introduced by last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 14:10:58 +0000 (14:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 14:10:58 +0000 (14:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/aboutdlg.cpp

index 16fb5d14fa4642816f93984487c9c20ea3c8452e..9c00eb3f575d2025b66c86817587587f9d75a609 100644 (file)
@@ -37,7 +37,7 @@ class GtkStr : public wxGtkString
 {
 public:
     GtkStr(const wxString& s)
-        : wxGtkString(wx_const_cast(char *, wxGTK_CONV_SYS(s).data()))
+        : wxGtkString(wx_const_cast(char *, wxGTK_CONV_SYS(s).release()))
     {
     }
 };