mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00: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…
x
Reference in New Issue
Block a user