Can you own this resource with boost::scoped_array? If so you can remove the destructor entirely.