From c4ab8cca8b21dc891daf6df89f85bdeeb6627805 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 9 Mar 2021 10:43:50 +0100 Subject: [PATCH] delete airbuf on resetGL --- basegraph.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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