fix a memleak in EncodeImageInternal()
fix a memleak in EncodeImageInternal()

Change-Id: I55cd013211f192188b54c694ef0837af0c01b53c

zofuthan/libwebp,kim42083/webm.libwebp,imazen/libwebp,PKRoma/libwebp,matanbs/webm.libwebp,matanbs/webm.libwebp,gshORTON/webm.libwebp,jacklicn/libwebp,Distrotech/libwebp,keane83/BLE_IM,reimaginemedia/webm.libwebp,comoyo/gonzo-libwebp,PKRoma/libwebp,ttyangf/libwebp,ya7lelkom/libwebp,Acidburn0zzz/webm.libwebp,jacklicn/libwebp,rxl194/libwebp,Maria1099/webm.libwebp,abwiz0086/webm.libwebp,altogother/webm.libwebp,appunite/libwebp,Suvarna1488/webm.libwebp,ericmckean/webm.libwebp,reimaginemedia/webm.libwebp,kim42083/webm.libwebp,Tekserve/libwebp,Tekserve/libwebp,matanbs/webm.libwebp,kalli123/webm.libwebp,keane83/BLE_IM,iniwf/webm.libwebp,jiehu5114/libwebp,redengineer/libwebp,dumganhar/libwebp,Distrotech/libwebp,ya7lelkom/libwebp,matanbs/webm.libwebp,altogother/webm.libwebp,kleopatra999/webm.libwebp,ya7lelkom/libwebp,yohunl/libwebp,kalli123/webm.libwebp,comoyo/gonzo-libwebp,imazen/libwebp,Acidburn0zzz/webm.libwebp,Tekserve/libwebp,Aexyn/libwebp,zofuthan/libwebp,jacklicn/libwebp,kalli123/webm.libwebp,ya7lelkom/libwebp,kleopatra999/webm.libwebp,comoyo/gonzo-libwebp,dumganhar/libwebp,webmproject/libwebp,webmproject/libwebp,appunite/libwebp,Suvarna1488/webm.libwebp,kleopatra999/webm.libwebp,comoyo/gonzo-libwebp,Maria1099/webm.libwebp,comoyo/gonzo-libwebp,altogother/webm.libwebp,yohunl/libwebp,zofuthan/libwebp,rxl194/libwebp,PKRoma/libwebp,iniwf/webm.libwebp,kalli123/webm.libwebp,imazen/libwebp,Aexyn/libwebp,cysp/libwebp,redengineer/libwebp,keane83/BLE_IM,webmproject/libwebp,iniwf/webm.libwebp,ya7lelkom/libwebp,kim42083/webm.libwebp,rxl194/libwebp,ttyangf/libwebp,abwiz0086/webm.libwebp,ttyangf/libwebp,Suvarna1488/webm.libwebp,yohunl/libwebp,yohunl/libwebp,Maria1099/webm.libwebp,Tekserve/libwebp,keane83/BLE_IM,Aexyn/libwebp,altogother/webm.libwebp,webmproject/libwebp,webmproject/libwebp,abwiz0086/webm.libwebp,ericmckean/webm.libwebp,Suvarna1488/webm.libwebp,Aexyn/libwebp,ericmckean/webm.libwebp,altogother/webm.libwebp,Maria1099/webm.libwebp,PKRoma/libwebp,kleopatra999/webm.libwebp,cysp/libwebp,appunite/libwebp,reimaginemedia/webm.libwebp,ttyangf/libwebp,gshORTON/webm.libwebp,keane83/BLE_IM,kalli123/webm.libwebp,jacklicn/libwebp,jiehu5114/libwebp,imazen/libwebp,cysp/libwebp,zofuthan/libwebp,dumganhar/libwebp,cysp/libwebp,kim42083/webm.libwebp,zofuthan/libwebp,rxl194/libwebp,Distrotech/libwebp,jiehu5114/libwebp,Acidburn0zzz/webm.libwebp,appunite/libwebp,gshORTON/webm.libwebp,appunite/libwebp,reimaginemedia/webm.libwebp,comoyo/gonzo-libwebp,Suvarna1488/webm.libwebp,yohunl/libwebp,Maria1099/webm.libwebp,ericmckean/webm.libwebp,ttyangf/libwebp,matanbs/webm.libwebp,kim42083/webm.libwebp,kleopatra999/webm.libwebp,jacklicn/libwebp,PKRoma/libwebp,Aexyn/libwebp,jiehu5114/libwebp,gshORTON/webm.libwebp,Acidburn0zzz/webm.libwebp,iniwf/webm.libwebp,rxl194/libwebp,redengineer/libwebp,redengineer/libwebp,imazen/libwebp,PKRoma/libwebp,abwiz0086/webm.libwebp,gshORTON/webm.libwebp,abwiz0086/webm.libwebp,jiehu5114/libwebp,redengineer/libwebp,comoyo/gonzo-libwebp,reimaginemedia/webm.libwebp,Acidburn0zzz/webm.libwebp,ericmckean/webm.libwebp,iniwf/webm.libwebp,appunite/libwebp