X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctgraphics%2Fsgp.cpp;h=8a5400fc00e620ffbbc802a558a1ed2dd47afe98;hp=cc87671d0c45388327cba801bc1c69b2a0cce518;hb=30e455abcd8cac05ce7afe43216ec9e26342e1cf;hpb=29ceda2bc7505f0496e1cb5d1e45b489cafa7891 diff --git a/libctgraphics/sgp.cpp b/libctgraphics/sgp.cpp index cc87671..8a5400f 100644 --- a/libctgraphics/sgp.cpp +++ b/libctgraphics/sgp.cpp @@ -7,7 +7,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: sgp.cpp,v 1.3 2000/06/19 19:16:17 kevin Exp $ +** $Id: sgp.cpp,v 1.4 2000/07/11 10:32:44 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -84,12 +84,13 @@ void sgp2_close (SGP_ID gid) { #if HAVE_G2_H + if (gid) g2_close (gid->g2_id); #endif - if (gid == _sgp2_cwin) - _sgp2_cwin = NULL; + if (gid == _sgp2_cwin) + _sgp2_cwin = NULL; - delete gid; + delete gid; } void