summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-21 19:06:08 +0200
committerAylur <[email protected]>2024-09-21 19:07:29 +0200
commitad8d3409fec4d7d4fd728f364a139947ff1185e3 (patch)
tree3e4ac867c3e1f543fec2f045a18b9d86c990a94f /core
parenta819c41afcdde7b4bbe0ecf04dc8a84c87cc3c75 (diff)
fix(Variable): remove explicit run_dispose
let gc collect them
Diffstat (limited to 'core')
-rw-r--r--core/gjs/src/variable.ts1
-rw-r--r--core/lua/astal/variable.lua3
2 files changed, 0 insertions, 4 deletions
diff --git a/core/gjs/src/variable.ts b/core/gjs/src/variable.ts
index 84f8cc5..8739ef6 100644
--- a/core/gjs/src/variable.ts
+++ b/core/gjs/src/variable.ts
@@ -101,7 +101,6 @@ class VariableWrapper<T> extends Function {
drop() {
this.variable.emit("dropped")
- idle(() => this.variable.run_dispose())
}
onDropped(callback: () => void) {
diff --git a/core/lua/astal/variable.lua b/core/lua/astal/variable.lua
index da2e894..377b448 100644
--- a/core/lua/astal/variable.lua
+++ b/core/lua/astal/variable.lua
@@ -124,9 +124,6 @@ end
function Variable:drop()
self.variable.emit_dropped()
- Astal.Time.idle(GObject.Closure(function()
- self.variable.run_dispose()
- end))
end
---@param callback function