Bug 1167081 - Call PuppetWidget::Destroy() in its destructor. r=roc
authorKan-Ru Chen <kanru@kanru.info>
Thu, 21 May 2015 16:08:43 +0800
changeset 266190 85b2d662f614b2089cbd7d7bb4b1d93ee1d868f1
parent 266189 b9d272c24804375749013dd7c5d54ecad8a3cc48
child 266191 bd180fa25240ad9a6c7c74999550b27fc9e2fb97
push id2231
push usermichael.l.comella@gmail.com
push dateFri, 22 May 2015 20:04:59 +0000
reviewersroc
bugs1167081
milestone41.0a1
Bug 1167081 - Call PuppetWidget::Destroy() in its destructor. r=roc
widget/PuppetWidget.cpp
--- a/widget/PuppetWidget.cpp
+++ b/widget/PuppetWidget.cpp
@@ -87,16 +87,18 @@ PuppetWidget::PuppetWidget(TabChild* aTa
   mSingleLineCommands.SetCapacity(4);
   mMultiLineCommands.SetCapacity(4);
   mRichTextCommands.SetCapacity(4);
 }
 
 PuppetWidget::~PuppetWidget()
 {
   MOZ_COUNT_DTOR(PuppetWidget);
+
+  Destroy();
 }
 
 NS_IMETHODIMP
 PuppetWidget::Create(nsIWidget        *aParent,
                      nsNativeWidget   aNativeParent,
                      const nsIntRect  &aRect,
                      nsWidgetInitData *aInitData)
 {