deallocate

C++ allocator<X>::deallocate(NULL,1) allowed?

Both free(NULL) and ::operator delete(NULL) are allowed. Does the allocator concept (e.g. std::allocator also allow deallocate(NULL,1), or is it required to put your own guard around it? ...

iOS UIViewController deallocating itself?

Odd problem in an iPhone app. My application's main view is View A, which is a tab controller. One tab in particular is set to load View B. View B, when you click a button, modally displays View C. View C in turn has a button that, when pressed, sends a message to its delegate (View B's view controller), and the delegate then dismisses ...