Miguel,
I modified your code slightly to use a new group so as not to trash my server:
(
g = Group.new;
x = SynthDef(\test, {
var env = Env([ 1, 0, 0 ],[ 6, 0 ], \lin );
EnvGen.kr(env, \
gate.kr(0), doneAction:14).poll
}).play(g);
)
Yes, the freeing of the Group by doneAction: 14 frees both group and synth. I changed the \gate to \
gate.kr(1) and that, as expected, ran the envelope down to to zero, where the poll stopped.
Not exactly sure what outcome you are trying to achieve with \
gate.kr(0) but I can confirm that the behaviours between DoneAction 2 and 14 are quite different.. PlotTree confirms what's happening, as I'm sure you've checked. . .
Pete