fix deletion crash when an error occurs at terminal creation
fix deletion crash when an error occurs at terminal creation

canatella/gpac,canatella/gpac,canatella/gpac,canatella/gpac,canatella/gpac,canatella/gpac,canatella/gpac