Skip to content

Commit

Permalink
Fixed most of the memory leaks, Addresses issue #76
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiskadee-dev committed Oct 24, 2021
1 parent 0015a5d commit b61d832
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion character/Barista.gd
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func remove_cup():
for item in carry_attachment.get_children():
if item is Cup:
cup = item
carry_attachment.remove_child(item)
item.queue_free()
if cup:
return cup.coffee_type
return null
Expand Down
2 changes: 1 addition & 1 deletion level/Fridge.gd
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func set_using():
yield(tween, "tween_completed")
animation_player.play("drinkBeverage")
yield(animation_player, "animation_finished")
barista.carry_attachment.remove_child(cold_beverage)
cold_beverage.queue_free()

# TODO: convert this into speech baloons
func eprint(text: String):
Expand Down
2 changes: 1 addition & 1 deletion level/ServingTray.gd
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func take_items():
return
for i in items_container_object.get_children():
var item_type = i.coffee_type
items_container_object.remove_child(i)
i.queue_free()

func set_putting():
should_ignore_clicks = false
Expand Down

0 comments on commit b61d832

Please sign in to comment.