mozilla / r2d2b2g

Firefox OS Simulator is a test environment for Firefox OS. Use it to test your apps in a Firefox OS-like environment that looks and feels like a mobile phone.
https://addons.mozilla.org/en-US/firefox/addon/firefox-os-simulator/
Other
392 stars 139 forks source link

js_message leaks message wrappers to avoid crash #825

Open mykmelez opened 11 years ago

mykmelez commented 11 years ago

820 introduces a memory leak of message wrappers in js_message in order to avoid a crash:

+  // TODO: Fix this memory leak by figuring out why there is bad access when the
+  // destructor calls free_js_msg (even if the function is empty).
+  thread_store_set(&js_msg_key, wrapper, /* free_js_msg */ NULL);

We should figure out why the crash is happening and resolve that issue so we can plug the leak.

cc: @brendandahl, @bkase