diff --git a/basegraph.cpp b/basegraph.cpp index 67f7b38a..b016b4d5 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -664,6 +664,10 @@ EX void resetGL() { floor_textures = NULL; } #endif + if(airbuf) { + delete airbuf; + airbuf = nullptr; + } check_cgi(); if(currentmap) cgi.require_shapes(); #if MAXMDIM >= 4