Skip to content

Commit

Permalink
Merge pull request #230 from jonathaneeckhout/dev_fix_memleak
Browse files Browse the repository at this point in the history
Fix memleak
  • Loading branch information
jonathaneeckhout authored Jan 14, 2024
2 parents 0493b9f + 768457c commit 1229354
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/classes/Boost.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Object
extends RefCounted
class_name Boost
## This is used to store the boosts a player may obtain. Most common sources being items and status effects.
## These are meant to be temporary and may be deleted at any time.
Expand Down
2 changes: 1 addition & 1 deletion scripts/classes/LocalSaving.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Object
extends RefCounted
class_name LocalSaveSystem

const DEFAULT_PATH: String = "user://SaveFile.ini"
Expand Down
2 changes: 1 addition & 1 deletion scripts/classes/SoundManager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static func new_settings() -> StreamPlayerSettings:


class StreamPlayerSettings:
extends Object
extends RefCounted

## Position for 2D players, in global coordinates
var position_2D: Vector2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ func get_closest_target_position_to_timestamp(timestamp: float) -> PositionEleme


class PositionElement:
extends Object
extends RefCounted
var timestamp: float
var position: Vector2
2 changes: 1 addition & 1 deletion scripts/components/player/skillcomponent/SkillUseInfo.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends Object
extends RefCounted

class_name SkillUseInfo

Expand Down
2 changes: 1 addition & 1 deletion scripts/singletons/clientgateway.gd
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func _on_client_disconnected():


class User:
extends Object
extends RefCounted
var username: String = ""
var logged_in: bool = false
var connected_time: float = Time.get_unix_time_from_system()
4 changes: 2 additions & 2 deletions scripts/singletons/servergateway.gd
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func _on_check_cookie_timer_timeout():


class Server:
extends Object
extends RefCounted
var name: String = ""
var address: String = ""
var peer_id: int = 0
Expand All @@ -224,7 +224,7 @@ class Server:


class User:
extends Object
extends RefCounted
var username: String = ""
var cookie: String = ""
# Used to check how long the cookie is valid
Expand Down

0 comments on commit 1229354

Please sign in to comment.