Probably not good to invalidate the layout in the destructor...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30350 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-04-23 18:31:22 +00:00
parent 5d2a1fb46e
commit 8baeb63aa2

View File

@ -331,7 +331,8 @@ PaneSwitch::PaneSwitch(const char *name, bool leftAligned, uint32 flags)
PaneSwitch::~PaneSwitch()
{
SetLabels(NULL, NULL);
free(fLabelOn);
free(fLabelOff);
}