Is there any kind of ScopeGuard or ScopeExit available in Urho3D?
Here is a use case:
There is a leak there (coverity 126870):
FreeImageData(pixelDataIn);
should be called on this exit path. While it could be called directly, a scope guard would be preferable, as it would avoid the duplicate function call and cover all possible [even future] exit branches.
Alternatively, Urho’s smart pointers could support custom deleters, but that would be more work.