Skip to content

Commit

Permalink
fix allocator memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarnadas committed Aug 30, 2022
1 parent 47f7d9a commit 4df3de9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
19 changes: 0 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src-wasm/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ app-tile = { path = "../app-tile" }
js-sys = "0.3"
rapier = { package = "rapier2d", version = "0.14" }
wasm-bindgen = "0.2"
wee_alloc = "0.4"
winit = "0.26"

[dependencies.bevy]
Expand Down
3 changes: 0 additions & 3 deletions src-wasm/app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ use wasm_bindgen::prelude::*;
pub fn setup_panic_hook() {
console_error_panic_hook::set_once();
}

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

0 comments on commit 4df3de9

Please sign in to comment.