Fix potential memory leak

See #15991
This commit is contained in:
Paul Cornett
2018-05-11 10:47:21 -07:00
parent ff215a4349
commit 7d039a2e0b

View File

@@ -8317,6 +8317,8 @@ bool wxRichTextBuffer::SubmitAction(wxRichTextAction* action)
{
GetCommandProcessor()->Store(cmd); // Just store it, without Do()ing anything
}
else
delete cmd;
}
return true;