mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:04:11 +08:00
Dispose of heap when we reset the context.
This commit is contained in:
parent
a56e98bfc4
commit
0edb0018ff
|
@ -41,6 +41,7 @@ JS
|
|||
end
|
||||
|
||||
def self.reset_context
|
||||
@ctx.dispose
|
||||
@ctx = nil
|
||||
end
|
||||
|
||||
|
|
|
@ -161,6 +161,7 @@ module JsLocaleHelper
|
|||
end
|
||||
|
||||
def self.reset_context
|
||||
@ctx.dispose
|
||||
@ctx = nil
|
||||
end
|
||||
|
||||
|
|
|
@ -123,6 +123,7 @@ module PrettyText
|
|||
|
||||
def self.reset_context
|
||||
@ctx_init.synchronize do
|
||||
@ctx.dispose
|
||||
@ctx = nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user