[go: up one dir, main page]

Alerter.hpp: releaseCallStoreMulti and releaseCallStoreSingle pratically useless

At one point, I probably misread the MSDN Documentation for the Interface** operator&() function.

What I thought was happening

  • The function releases the pointer into the wilderness for us to catch with a variable
  • The function sets it's own member variable that stored the pointer to NULL

What actually happens

  • The function sets it's own member variable to NULL
  • The function returns the address of this pointer

The reason why I found out is due to me re-reading the documentation; and realizing that they consistently use "encapsulated pointer" throughout, meaning that the pointer is still being encapsulated. Also, I've tested it by reducing the macro, and it works.