Skip to content
Commit bcd1f395 authored by Chun-wei Fan's avatar Chun-wei Fan
Browse files

Use std::unique_ptr instead of g_autofree/g_autoptr()

This completes the transition of the code to std::unique_ptr so that we
can be assured that we use JS_free() on items that are acquired via
pass-by-reference via SpiderMonkey APIs, and thus we can remove more of
the g_free() calls on those as SpiderMonkey may switch to a different
allocation/deallocation implementation internally (which is currently
free()).

https://bugzilla.gnome.org/show_bug.cgi?id=777597
parent 6d63d560
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment