Fixed destruction bug
This commit is contained in:
parent
653f820c7e
commit
8b3b6a263f
1 changed files with 6 additions and 4 deletions
|
|
@ -82,18 +82,20 @@ TimelineWidget::TimelineWidget(
|
||||||
|
|
||||||
TimelineWidget::~TimelineWidget()
|
TimelineWidget::~TimelineWidget()
|
||||||
{
|
{
|
||||||
|
trackMap.clear();
|
||||||
|
|
||||||
// Destroy child widgets
|
// Destroy child widgets
|
||||||
REQUIRE(body != NULL);
|
REQUIRE(body != NULL);
|
||||||
if(body != NULL)
|
if(body != NULL)
|
||||||
body->unreference();
|
delete body;
|
||||||
|
|
||||||
REQUIRE(headerContainer != NULL);
|
REQUIRE(headerContainer != NULL);
|
||||||
if(headerContainer != NULL)
|
if(headerContainer != NULL)
|
||||||
headerContainer->unreference();
|
delete headerContainer;
|
||||||
|
|
||||||
REQUIRE(ruler != NULL);
|
REQUIRE(ruler != NULL);
|
||||||
if(ruler != NULL)
|
if(ruler != NULL)
|
||||||
ruler->unreference();
|
delete ruler;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== Data Access ===== */
|
/* ===== Data Access ===== */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue