rework histogram_bezier, init wm icon set_icon(gg), update de.po+msg/txt
[goodguy/history.git] / cinelerra-5.1 / cinelerra / setformat.C
index b70f68824cf1bb8c172dcec863fe9bc35d610ccc..cf8f1a2e4ffe869289b1ce95748b94e491c68e15 100644 (file)
@@ -279,35 +279,28 @@ void SetFormatThread::update_aspect()
 
 
 SetFormatWindow::SetFormatWindow(MWindow *mwindow,
-       SetFormatThread *thread,
-       int x,
-       int y)
- : BC_Window(_(PROGRAM_NAME ": Set Format"),
-       x,
-       y,
-       mwindow->theme->setformat_w,
-       mwindow->theme->setformat_h,
-       -1,
-       -1,
-       0,
-       0,
-       1)
+       SetFormatThread *thread, int x, int y)
+ : BC_Window(_(PROGRAM_NAME ": Set Format"), x, y,
+       mwindow->theme->setformat_w, mwindow->theme->setformat_h,
+       -1, -1, 0, 0, 1)
 {
        this->mwindow = mwindow;
        this->thread = thread;
+       presets = 0;
+}
+SetFormatWindow::~SetFormatWindow()
+{
+       delete presets;
 }
 
 void SetFormatWindow::create_objects()
 {
+       lock_window("SetFormatWindow::create_objects");
        int x = 10, y = mwindow->theme->setformat_y1;
        BC_TextBox *textbox;
        BC_Title *title;
-
-       lock_window("SetFormatWindow::create_objects");
        mwindow->theme->draw_setformat_bg(this);
 
-
-
        presets = new SetFormatPresets(mwindow, this, x, y);
        presets->create_objects();
        x = presets->x; //  y = presets->y;