diff --git a/code/nel/include/nel/gui/group_table.h b/code/nel/include/nel/gui/group_table.h index ccc2ce3cf..52839e14b 100644 --- a/code/nel/include/nel/gui/group_table.h +++ b/code/nel/include/nel/gui/group_table.h @@ -41,6 +41,7 @@ namespace NLGUI DECLARE_UI_CLASS( CGroupCell ) CGroupCell(const TCtorParam ¶m); + ~CGroupCell(); enum TAlign { diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index b6b83fa3c..fcb1f58f0 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -6614,8 +6614,6 @@ namespace NLGUI uint32 borderWidth = 0; CRGBA borderColor = CRGBA::Transparent; - // TODO: _Style->hasBorder() ?? - table->Border = new CSSBorderRenderer(); if (elm.hasAttribute("border")) { std::string s = elm.getAttribute("border"); diff --git a/code/nel/src/gui/group_table.cpp b/code/nel/src/gui/group_table.cpp index 6f61b7571..6f4e93741 100644 --- a/code/nel/src/gui/group_table.cpp +++ b/code/nel/src/gui/group_table.cpp @@ -73,6 +73,16 @@ namespace NLGUI addGroup (Group); } + // ---------------------------------------------------------------------------- + CGroupCell::~CGroupCell() + { + if (Border) + { + delete Border; + Border = NULL; + } + } + // ---------------------------------------------------------------------------- void CGroupCell::setEnclosedGroupDefaultParams() {