Fix memory leak

This commit is contained in:
Loic Guegan 2022-12-31 23:24:14 +01:00
parent 8a14abe007
commit 1eb91c5926

View file

@ -27,6 +27,8 @@ BoardCanvas::BoardCanvas(wxFrame *parent)
BoardCanvas::~BoardCanvas() {
delete t;
delete t_captures;
if(adata.buffer!= nullptr)
free(adata.buffer);
}
BoardCanvas::BoardCanvas(wxFrame *parent, std::uint32_t square_width,