fix mem leak of encoder, edge and source. add destroy for gmc to detect mem leak. to 0.9.89