diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-21 13:19:10 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-21 13:19:10 (GMT) |
| commit | 8ec6aae617525d13697d1c2a612ac37be0f341d5 (patch) | |
| tree | e4cdf0795e0f77505acc0c1be544532912569959 /src/Graphics.cpp | |
| parent | d364a27ed6da5d75d1880c98c3fb2be683c5b915 (diff) | |
| download | powder-8ec6aae617525d13697d1c2a612ac37be0f341d5.zip powder-8ec6aae617525d13697d1c2a612ac37be0f341d5.tar.gz | |
Better cleanup for simulation - fix memory leaks
Diffstat (limited to 'src/Graphics.cpp')
| -rw-r--r-- | src/Graphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Graphics.cpp b/src/Graphics.cpp index 0aee464..ae4926a 100644 --- a/src/Graphics.cpp +++ b/src/Graphics.cpp @@ -2366,3 +2366,7 @@ Graphics::Graphics() { vid = (pixel *)malloc(PIXELSIZE * ((XRES+BARSIZE) * (YRES+MENUSIZE))); } +Graphics::~Graphics() +{ + free(vid); +} |
