My code goes like this this: wxSVGDocument* svgDoc = new wxSVGDocument; svgDoc->Load(path); path is a valid const wxString& and leads to a file that exists. Since upgrading my system (including gcc + wxwidgets) this dies with: free(): invalid pointer Aborted The bigger context is here. Is this a bug in this library, in wxwidgets, or am I doing something wrong?