Skip to content

Commit daa4919

Browse files
authored
Merge pull request #17 from gi/main
Version 0.3.2 ### Changed - `engine`: fixed issue with memory leak (#15)
2 parents 7c08214 + 6e18b81 commit daa4919

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.3.2] - 2022-02-17
11+
12+
### Changed
13+
- `engine`: fixed issue with memory leak ([#15](https://github.com/gi/handlebars-ruby/pull/15))
14+
1015
## [0.3.1] - 2022-02-04
1116

1217
### Added

lib/handlebars/engine/function.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ def call(*args)
1616

1717
def self.finalizer(context, name)
1818
proc {
19-
context.eval("delete #{name}")
19+
begin
20+
context.eval("delete #{name}")
21+
rescue ThreadError # rubocop:disable Lint/SuppressedException
22+
end
2023
}
2124
end
2225
end

lib/handlebars/engine/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Handlebars
44
class Engine
5-
VERSION = "0.3.1"
5+
VERSION = "0.3.2"
66
end
77
end

0 commit comments

Comments
 (0)