librime
librime copied to clipboard
Remember to shutdown logging when rime is finalized normally
Pull request
Issue tracker
Fixes will automatically close the related issue
Fixes #
Feature
Describe feature of pull request
... to prevent potential memory leaks.
Unit test
- [x] Done
Manual test
- [ ] Done
Code Review
- Unit and manual test pass
- GitHub Action CI pass
- At least one contributor reviews and votes
- Can be merged clean without conflicts
- PR will be merged by rebase upstream base
Additional Info
In a typical Rime program flow, RimeInitialize and RimeFinalize are called in pairs.
SetupLogging isn't done in RimeInitialize, therefore it should not be shut down in RimeFinalize.
In a typical Rime program flow,
RimeInitializeandRimeFinalizeare called in pairs.SetupLoggingisn't done inRimeInitialize, therefore it should not be shut down inRimeFinalize.
You are right. But I still think that shutting down the logging makes sense, where should I put it to?