Skip to content

Commit 4beb4d3

Browse files
authored
Merge pull request #540 from rdkcentral/release/2.13.2
Release - v2.13.2
2 parents 688237d + 9e658f5 commit 4beb4d3

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v2.13.2
4+
*04 June 2024*
5+
6+
- Fixes limiting behaviour that prevented using other system fonts. (#537)
7+
- Fixes duplicated call for `_cleanupLookupMap()` in the garbage collection function. (#520)
8+
- Fixes the issue causing double freeing of textures due to the garbage collection triggered during releasing memory. (#529)
9+
310
## v2.13.1
411
*12 apr 2024*
512

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Metrological, Bas van Meurs <b.van.meurs@metrological.com>",
33
"name": "@lightningjs/core",
4-
"version": "2.13.1",
4+
"version": "2.13.2",
55
"license": "Apache-2.0",
66
"type": "module",
77
"types": "dist/src/index.d.ts",

src/textures/TextTextureRendererUtils.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export function getFontSetting(
4545
let curFf = ff[i];
4646
// Replace the default font face `null` with the actual default font face set
4747
// on the stage.
48-
if (curFf === null) {
48+
if (curFf == null) {
4949
curFf = defaultFontFace;
5050
}
51-
if (curFf === "serif" || curFf === "sans-serif") {
51+
if (curFf.indexOf(' ') < 0) {
5252
ffs.push(curFf);
5353
} else {
5454
ffs.push(`"${curFf}"`);

src/tree/Stage.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export default class Stage extends EventEmitter {
449449

450450
addMemoryUsage(delta) {
451451
this._usedMemory += delta;
452-
if (this._lastGcFrame !== this.frameCounter) {
452+
if (delta > 0 && this._lastGcFrame !== this.frameCounter) {
453453
if (this._usedMemory > this.getOption('memoryPressure')) {
454454
this.gc(false);
455455
if (this._usedMemory > this.getOption('memoryPressure') - 2e6) {

src/tree/TextureManager.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ export default class TextureManager {
139139

140140
gc() {
141141
this.freeUnusedTextureSources();
142-
this._cleanupLookupMap();
143142
}
144143

145144
freeUnusedTextureSources() {

0 commit comments

Comments
 (0)