Skip to content

Commit

Permalink
Fixed|UI|Client: Memory leak in SidebarWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 1, 2016
1 parent fff3572 commit 4f137c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/apps/client/src/ui/widgets/sidebarwidget.cpp
Expand Up @@ -35,7 +35,7 @@ DENG_GUI_PIMPL(SidebarWidget)
IndirectRule *firstColumnWidth; ///< Shared by all groups.
LabelWidget *title;
ButtonWidget *close;
SequentialLayout *layout;
std::unique_ptr<SequentialLayout> layout;

Instance(Public *i)
: Base(i)
Expand Down Expand Up @@ -82,7 +82,7 @@ SidebarWidget::SidebarWidget(String const &titleText, String const &name)
.setInput(Rule::Right, area.right())
.setInput(Rule::Bottom, d->title->rule().bottom());

d->layout = new SequentialLayout(area.left(), d->title->rule().bottom(), Down);
d->layout.reset(new SequentialLayout(area.left(), d->title->rule().bottom(), Down));

// Update container size.
// Now we can define the first column width.
Expand Down

0 comments on commit 4f137c2

Please sign in to comment.