Fixed memory leak in Example.cpp