TeamForbiddenLLC / warfork-qfusion

Warfork is powered by Qfusion a 3D game engine. Qfusion is a fork of id Tech 2, popularly known as the Quake II engine. Qfusion is free and open-source software subject to the terms of the GNU General Public License.
https://warfork.com
105 stars 43 forks source link

feat: resolve memory leak and add support for alias buffer with free #284

Closed pollend closed 6 months ago

pollend commented 6 months ago

this resolves a couple memory leaks when loading images. An image buffer can now be aliased to memory that it doesn't directly own but is able to free when the buffer is freed from use.

This should allow a buffer to be aliased but when aliased to some other memory it will then call free on the resource not directly owned.