Solve memory leak problem, but uninitial values jump problems didn't fix...

Solve memory leak problem, but uninitial values jump problems didn't fixed. I need help~