X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fproxy.C;h=4774ecde51fc69ec81f4f921bed64cf11e9c7ad4;hb=38cb4182e11e57fc426bede3825e825e9d61433b;hp=faafc8005f36ab2d533e093fa3ed602c3ebb6bb1;hpb=b5c58822be78c8820692c916e296a2230bb2b9e2;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/proxy.C b/cinelerra-5.1/cinelerra/proxy.C index faafc800..4774ecde 100644 --- a/cinelerra-5.1/cinelerra/proxy.C +++ b/cinelerra-5.1/cinelerra/proxy.C @@ -55,6 +55,11 @@ ProxyMenuItem::ProxyMenuItem(MWindow *mwindow) { this->mwindow = mwindow; set_alt(); + dialog = 0; +} +ProxyMenuItem::~ProxyMenuItem() +{ + delete dialog; } void ProxyMenuItem::create_objects() @@ -94,7 +99,7 @@ BC_Window* ProxyDialog::new_gui() asset->load_defaults(mwindow->defaults, "PROXY_", 1, 1, 0, 0, 0); mwindow->gui->lock_window("ProxyDialog::new_gui"); int cx, cy; - mwindow->gui->get_abs_cursor_xy(cx, cy); + mwindow->gui->get_abs_cursor(cx, cy); gui = new ProxyWindow(mwindow, this, cx - WIDTH/2, cy - HEIGHT/2); gui->create_objects(); mwindow->gui->unlock_window();