Sure, but my point was that RAII doesn't need to involve the heap. Another example would be acquiring abd releasing a mutex.