oops, some other places where frees are needed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@268 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1997-12-04 08:41:40 +00:00
parent f89e022530
commit 5f9c714c52

View File

@ -877,6 +877,8 @@ fileMenubarCB( Widget mw, XtPointer cd, XtPointer cb )
fileMenubarCB( mw, (XtPointer)FMB_SAVE, cb );
}
datafile = NULL;
/* destroy open windows first, before destroying the group itself */
xaccGroupWindowDestroy (grp);
freeAccountGroup (grp);
grp = mallocAccountGroup();
grp->new = True; /* so we have to do a "SaveAs" when
@ -990,6 +992,8 @@ fileMenubarCB( Widget mw, XtPointer cd, XtPointer cb )
fileMenubarCB( mw, (XtPointer)FMB_SAVE, cb );
}
/* destroy open windows first, before destroying the group itself */
xaccGroupWindowDestroy (grp);
freeAccountGroup (grp);
topgroup = NULL;
XtUnmapWidget(toplevel); /* make it disappear quickly */