mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Dispose of heap when we reset the context.
This commit is contained in:
parent
a56e98bfc4
commit
0edb0018ff
3 changed files with 3 additions and 0 deletions
|
@ -123,6 +123,7 @@ module PrettyText
|
|||
|
||||
def self.reset_context
|
||||
@ctx_init.synchronize do
|
||||
@ctx.dispose
|
||||
@ctx = nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue