fix out-of-order destruction of objects at program termination

[email protected] Wed, 6 Nov 2002 16:30:57 -0800
Newsgroups gmane.comp.lib.ivtools.patches
Message-ID <a04320404b9ef64ab055c@[12.236.206.76]>
Patch:    ivtools-021106-johnston-074
For:      ivtools-1.0.6
Author:   [email protected]
Subject:  fix out-of-order destruction of objects at program termination
Requires:

This is an intermediate patch to ivtools-1.0.6.  To apply, cd to the
top-level directory of the ivtools source tree (the directory with src
and config subdirs), and apply like this:

         patch -p0 <ThisFile

Summary of Changes:

- fix out-of-order destruction of member objects of the central
Unidraw object at program termination.

Index: Unidraw/unidraw.c
diff -c Unidraw/unidraw.c:1.1 Unidraw/unidraw.c:1.2
*** Unidraw/unidraw.c:1.1       Fri Sep 13 09:50:58 2002
--- src/Unidraw/unidraw.c       Wed Nov  6 12:13:08 2002
***************
*** 211,220 ****
   Unidraw::~Unidraw () {
       CloseAll();
       ClearHistory();
-     delete _histories;
       delete _editors;
       delete _deadEditors;
       delete _catalog;
       delete _world;
   }

--- 211,220 ----
   Unidraw::~Unidraw () {
       CloseAll();
       ClearHistory();
       delete _editors;
       delete _deadEditors;
       delete _catalog;
+     delete _histories;
       delete _world;
   }

*** /dev/null    Wed Nov 6 12:13:32 PST 2002
--- patches/ivtools-021106-johnston-074
*************** patches/ivtools-021106-johnston-074
*** 0 ****
--- 1 ----
+ ivtools-021106-johnston-074


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en