cc: Fix error passing in end-stream signal
GError is not reference counted and as such it doesn't make sense for a signal handler to own the passed error instance. Instead, the error should be destroyed by the signal emitter and should be copied by the signal handler if it should be used elsewhere.