OoliteProject / oolite

The main Oolite repository.
https://www.oolite.space
543 stars 70 forks source link

Fix for possible memory leak on Mac #446

Closed phkb closed 10 months ago

phkb commented 10 months ago

This is a fix for a possible memory leak on the Mac based on the info here: https://blog.vucica.net/2011/06/avoiding-memory-leak-in-openal-and-crash-in-openal-for-mac.html

I've been running this change in my local build (Windows) for a while without impact. But it would be good to hear from others (on Linux particularly) to make sure there is no obvious issues there before merging.

It may not be a fix for the issue with sounds on Mac, but it might help.

AnotherCommander commented 10 months ago

This seems to be working without any side effects for me.