Fixed numerous mem errors

Review URL: https://codereview.appspot.com/6441070

git-svn-id: http://skia.googlecode.com/svn/trunk@4849 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/QT/SkSettingsWidget.cpp b/debugger/QT/SkSettingsWidget.cpp
index bc37a12..2519efd 100644
--- a/debugger/QT/SkSettingsWidget.cpp
+++ b/debugger/QT/SkSettingsWidget.cpp
@@ -12,7 +12,7 @@
 #include <math.h>
 
 // TODO(chudy): See if the layout can't be attached to the frame post construction.
-SkSettingsWidget::SkSettingsWidget(QWidget *parent) : QWidget(parent)
+SkSettingsWidget::SkSettingsWidget() : QWidget()
     , mainFrameLayout(this)
     , fVerticalLayout(&mainFrame)
     , fVisibleFrameLayout(&fVisibleFrame)
@@ -22,8 +22,8 @@
     , fCurrentCommandBox(&fCommandFrame)
     , fCommandHitBox(&fCommandFrame)
     , fCanvasLayout(&fCanvasFrame)
-    , fZoomBox(&fZoomFrame)
     , fZoomLayout(&fZoomFrame)
+    , fZoomBox(&fZoomFrame)
 {
     // Sets up the container and it's alignment around the settings widget.
     mainFrame.setFrameShape(QFrame::StyledPanel);
@@ -71,7 +71,6 @@
 
     fCanvasLayout.setSpacing(6);
     fCanvasLayout.setContentsMargins(11,11,11,11);
-    fCanvasLayout.addWidget(&fCanvasToggle);
     fCanvasLayout.addLayout(&fRasterLayout);
     fCanvasLayout.addLayout(&fGLLayout);
 
@@ -139,8 +138,6 @@
     this->setDisabled(true);
 }
 
-SkSettingsWidget::~SkSettingsWidget() {}
-
 
 void SkSettingsWidget::updateCommand(int newCommand) {
     fCurrentCommandBox.setText(QString::number(newCommand));