Commit 581ea9d8a82fe7fc2314d24f2dee124d24d47f31
1 parent
7efd7d99
Disponse events after using them
Showing
1 changed file
with
5 additions
and
2 deletions
src/ctskymap/ctskymap.cpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * ctskymap - Sky mapping tool * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2011-2016 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2011-2017 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -235,7 +235,10 @@ void ctskymap::run(void) |
| 235 | 235 | |
| 236 | 236 | // Compute background sky map |
| 237 | 237 | map_background(obs); |
| 238 | - | |
| 238 | + | |
| 239 | + // Dispose events to free memory | |
| 240 | + obs->dispose_events(); | |
| 241 | + | |
| 239 | 242 | } // endfor: looped over observations |
| 240 | 243 | |
| 241 | 244 | // If background subtract was required then compute significance map | ... | ... |