X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fsetformat.C;h=cf8f1a2e4ffe869289b1ce95748b94e491c68e15;hb=3ceaf97d3b161445161eb5d48f3e8d5e9c34e3f8;hp=b70f68824cf1bb8c172dcec863fe9bc35d610ccc;hpb=74afbc29ac4ce9d94d53e10342979f2c59f1f193;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/setformat.C b/cinelerra-5.1/cinelerra/setformat.C index b70f6882..cf8f1a2e 100644 --- a/cinelerra-5.1/cinelerra/setformat.C +++ b/cinelerra-5.1/cinelerra/setformat.C @@ -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;