Fixed a bug in oglplus example

- Fixed a bug where a temporary string was used after deletion.