Skip to content

Commit

Permalink
v1.0.1 #2
Browse files Browse the repository at this point in the history
fix: extends from Reference instead of Node to prevent memory leaks
  • Loading branch information
viniciusgerevini authored May 9, 2021
2 parents c373704 + 209181b commit 6c1f130
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

The Working in Progress (WIP) section is for changes that are already in master, but haven't been published to Godot's asset library yet. Even though the section is called WIP, all changes in master are stable and functional.

## 1.0.1 (2021-05-09)

### Fixed

- Extend scripts from `Reference` instead of `Node` to prevent memory leaks.

### Thanks

Thanks to Enes Yesilyurt (@Tols-Toy) for spotting the memory leak and for suggesting a fix for it.

## 1.0.0 (2021-02-18)

Initial release
Expand Down
2 changes: 1 addition & 1 deletion addons/clyde/ClydeDialogue.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Node
extends Reference

const Interpreter = preload('./interpreter/Interpreter.gd')

Expand Down
2 changes: 1 addition & 1 deletion addons/clyde/interpreter/Interpreter.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Node
extends Reference

signal variable_changed(name, value, previous_value)
signal event_triggered(event_name)
Expand Down
2 changes: 1 addition & 1 deletion addons/clyde/interpreter/LogicInterpreter.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Node
extends Reference

const SPECIAL_VARIABLE_NAMES = [ 'OPTIONS_COUNT' ];

Expand Down
2 changes: 1 addition & 1 deletion addons/clyde/interpreter/Memory.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Node
extends Reference

signal variable_changed(name, value, previous_value)

Expand Down
2 changes: 1 addition & 1 deletion addons/clyde/parser/Lexer.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Node
extends Reference

const TOKEN_TEXT = "TEXT"
const TOKEN_INDENT = "INDENT"
Expand Down
2 changes: 1 addition & 1 deletion addons/clyde/parser/Parser.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Node
extends Reference

const Lexer = preload("./Lexer.gd")
const TokenWalker = preload("./TokenWalker.gd")
Expand Down
2 changes: 1 addition & 1 deletion addons/clyde/parser/TokenWalker.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Node
extends Reference

const Lexer = preload('./Lexer.gd')

Expand Down
2 changes: 1 addition & 1 deletion addons/clyde/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="Clyde Dialogue"
description="Interpreter and importer for Clyde Dialogue Language"
author="Vinicius Gerevini"
version="1.0.0"
version="1.0.1"
script="plugin.gd"
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
config_version=4

_global_script_classes=[ {
"base": "Node",
"base": "Reference",
"class": "ClydeDialogue",
"language": "GDScript",
"path": "res://addons/clyde/ClydeDialogue.gd"
Expand Down

0 comments on commit 6c1f130

Please sign in to comment.