(Solved)Memory Management in Qt Using Pointers
@int main(int argc, char *argv)
QApplication a(argc, argv);
CMyClass *pObj = new CMyClass ;
According to rule allocate memory using new must deallocate using delete in order to manage memory leak,segfault etc.
How should i use delete (deallocating) pointer *pObj inside main?Does it delete automatically.