1 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all |
4 |
|
instance variables to cut cyclic references. The GC would have |
5 |
|
collected the loader eventually but it can happen that it doesn't |
6 |
|
run at all until thuban is closed (2.3 but not 2.2 tries a bit |
7 |
|
harder and forces a collection when the interpreter terminates) |
8 |
|
(load_session): Call the handler's Destroy method to make sure |
9 |
|
that it gets garbage collected early. Otherwise it will be |
10 |
|
collected very late if at all and it holds some references to e.g. |
11 |
|
shapestores and the session which can lead to leaks (of e.g. the |
12 |
|
temporary files) |
13 |
|
|
14 |
|
* test/test_load.py (TestSingleLayer.test_leak): New. test for the |
15 |
|
resource leak in load_session |
16 |
|
|
17 |
2003-11-10 Bernhard Herzog <[email protected]> |
2003-11-10 Bernhard Herzog <[email protected]> |
18 |
|
|
19 |
* Thuban/UI/baserenderer.py: Add a way to specify how layers in |
* Thuban/UI/baserenderer.py: Add a way to specify how layers in |