Remove a double free and re-arrange to stop referencing a freed pointer.

This commit is contained in:
Chris Young 2015-08-15 14:25:50 +01:00
parent ff1de89976
commit beb5b9a542

View File

@ -1948,9 +1948,8 @@ static void ami_gui_opts_use(bool save)
void ami_gui_opts_close(void)
{
DisposeObject(gow->objects[OID_MAIN]);
DelObject(gow->node);
ami_gui_opts_free(gow);
FreeVec(gow);
DelObject(gow->node);
gow = NULL;
}