workhorsy / SaltyNES

A NES emulator in WebAssembly
https://workhorsy.org/SaltyNES/
GNU General Public License v3.0
84 stars 6 forks source link

Better memory management #2

Closed workhorsy closed 7 years ago

workhorsy commented 7 years ago

Replaced many new/delete heap allocations with std::shared_ptr/std::unique_ptr and stack allocations. Replaced many dynamic sized arrays and std::vector with fixed sized std::array.