Fixed build warning with gcc 4.7.3

  [Problem] build warning with gcc 4.7.3
            warning: deleting ‘void*’ is undefined [enabled by default]
[Reference] http://stackoverflow.com/questions/6172232/is-it-undefined-behaviour-to-delete-a-null-void-pointer