Edwin Leuven <[EMAIL PROTECTED]> writes:
| Hi,
|
| I think that the problem in the character form is the following:
|
| I thought that Combox was a native xforms object but it is in fact a class
| defined/declared in ./src/combox.[Ch]. This class takes care of the
| destruction of the Combox. The delete Combox in the destructor in
| FormCharacter should therefore be removed (patch attached) because it wants
| to delete something that is in fact already being taken care of by the
| destructor of class Combox.
|
| Can someone confirm this?
|
| Thanks, Ed.
|
|
| Index: src/frontends/xforms/FormCharacter.C
| ===================================================================
| RCS file: /tmp/cvs/initial/src/frontends/xforms/FormCharacter.C,v
| retrieving revision 1.1.1.1
| diff -u -p -r1.1.1.1 FormCharacter.C
| --- src/frontends/xforms/FormCharacter.C 2001/02/26 15:41:38 1.1.1.1
| +++ src/frontends/xforms/FormCharacter.C 2001/02/26 16:12:20
| @@ -47,8 +47,6 @@ FormCharacter::FormCharacter(LyXView * l
| FormCharacter::~FormCharacter()
| {
| delete dialog_;
| - delete combo_language2;
| -
| }
Ok, but where is the combox deleted then?
every "new" must have a "delete".
And why have this as a pointer in FormCharacter? It seems that it
could just be a regular object.
Lgb