X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fclipedit.C;h=76cd8744421802d91683388fc602a44a44723087;hb=6c0c8bd0e577001d1cc18c6c27d58e62f58a6bff;hp=d747f7e4b33f248e147c3d6880269c66cac690b7;hpb=2d99bb8ce591f05a31464b517d85dc2bc35b2abe;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/clipedit.C b/cinelerra-5.0/cinelerra/clipedit.C index d747f7e4..76cd8744 100644 --- a/cinelerra-5.0/cinelerra/clipedit.C +++ b/cinelerra-5.0/cinelerra/clipedit.C @@ -48,6 +48,7 @@ ClipEdit::ClipEdit(MWindow *mwindow, AWindow *awindow, VWindow *vwindow) ClipEdit::~ClipEdit() { + close_window(); } // After the window is closed and deleted, this is called. @@ -89,7 +90,7 @@ void ClipEdit::handle_close_event(int result) // For creating new clips, the original was copied in add_clip. // For editing old clips, the original was transferred to another variable. - if(!create_it) delete clip; + if(!create_it) clip->remove_user(); original = 0; clip = 0; create_it = 0; @@ -146,7 +147,7 @@ void ClipEdit::create_clip(EDL *clip) ClipEditWindow::ClipEditWindow(MWindow *mwindow, ClipEdit *thread) - : BC_Window(PROGRAM_NAME ": Clip Info", + : BC_Window(_(PROGRAM_NAME ": Clip Info"), mwindow->gui->get_abs_cursor_x(1) - 400 / 2, mwindow->gui->get_abs_cursor_y(1) - 350 / 2, 400,