release resources

@ariok this is just a small fix to release resources