]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtexthtml.cpp
Don't assert in wxDataViewCtrl::ItemDeleted() if item doesn't exist.
[wxWidgets.git] / src / richtext / richtexthtml.cpp
index 3244486e09e32d68dc589d5fc3a1b7ac5beac71a..c5df3087979521a94c9ca22fc0b6890f2319064d 100644 (file)
@@ -85,8 +85,7 @@ bool wxRichTextHTMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream&
         customEncoding = new wxCSConv(GetEncoding());
         if (!customEncoding->IsOk())
         {
-            delete customEncoding;
-            customEncoding = NULL;
+            wxDELETE(customEncoding);
         }
     }
     if (customEncoding)