diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-08-13 18:15:56 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-08-15 09:26:52 -0700 |
| commit | d63f8340a5e947cdf6b3ad34d3683f2ae9e5cf84 (patch) | |
| tree | d125d87449992eeed18954fca6052c7f7e1fb543 /src/rt/rust.cpp | |
| parent | aa0a51a7f56c4c343b296492ffaa2bc296c0b224 (diff) | |
| download | rust-d63f8340a5e947cdf6b3ad34d3683f2ae9e5cf84.tar.gz rust-d63f8340a5e947cdf6b3ad34d3683f2ae9e5cf84.zip | |
Properly ref counting to fix valgrind issues on linux.
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index a94eb6c1a24..cc2f86da4b2 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -108,6 +108,8 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { } root_task->start(main_fn, (uintptr_t)args->args); + root_task->deref(); + root_task = NULL; int ret = kernel->start_task_threads(); delete args; |
