Skip to content

Commit

Permalink
Don't clear args, rely on delete deregister_callbacks (#3543)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch authored Jan 24, 2024
1 parent 877ab7b commit 01f8800
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/scenes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ function free(plot::AbstractPlot)
for f in plot.deregister_callbacks
Observables.off(f)
end
for arg in plot.args
Observables.clear(arg)
end
foreach(free, plot.plots)
empty!(plot.plots)
empty!(plot.deregister_callbacks)
Expand Down

0 comments on commit 01f8800

Please sign in to comment.