I dont know why i am getting a segementation fault here

I used the lldb debugger and its saying my segmentation fault is occuring on this line, not sure why. I thought by check to see if the value is not a nullptr then i can continue to deallocate the dynamic memory
2 Replies
Revan
Revan2y ago
oh wait i got it, im supposed to check if aptr is not pointing to the nullptr not the indivudal variables inside the aptr assesment structure
elurbi
elurbi2y ago
exactly