Angus Leeming <[EMAIL PROTECTED]> writes:

| You're trying to delete the same object twice.
| 
| void FormSplash::build()
| {
|       dialog_ = build_splash();
| }
| 
| 
| FD_form_splash * FormSplash::build_splash()
| {
|   FD_form_splash *fdui = new FD_form_splash;
|   fdui->form->u_vdata = this;
| 
|   return fdui;
| }
| 
| FormSplash::~FormSplash()
| {
|       delete dialog_;
| }
| 
| void FormSplash::CloseCB(FL_OBJECT * ob)
| {
|       FormSplash * pre = static_cast<FormSplash*>(ob->form->u_vdata);
|       delete pre;
| }

If you could set dialog_ to 0 you should be safe.

        Lgb

Reply via email to