adium/adium

Fix two issues in the log viewer:
adium-1.5.2
2012-06-20, Thijs Alkemade
82f8f5b935a4
Fix two issues in the log viewer:

- Fix a race condition between the flushing and releasing of the index when the window is closed and the flushing by the indexer, by making sure -_cleanDirtyLogs retains its index and enters the closing group. This caused a crash.
- Fix an issue where _remainingLogs gets out of sync with the number of logs still in localLogSet when the log fails to parse. This caused an infinite loop and stopped the indexing from ever finishing.


Fixes #15984
4151ac3a3b1f9847b8d958f1c7d57a345d442266 1.5