(svn r25546) -Fix: two small memory leaks

This commit is contained in:
rubidium
2013-06-30 20:40:49 +00:00
parent 36bd61f303
commit f4c9ba4981
2 changed files with 4 additions and 0 deletions

View File

@@ -165,6 +165,9 @@ static Point MapXYZToViewport(const ViewPort *vp, int x, int y, int z)
void DeleteWindowViewport(Window *w)
{
if (w->viewport == NULL) return;
delete w->viewport->overlay;
free(w->viewport);
w->viewport = NULL;
}