Fix an unlikely crash in set_delete_on_close.
Created attachment 4126 [details] patch for 3.3
I've reviewed this (very simple :-) and I think it should be back ported to 3.3 as it's a potential crash bug (although very unlikely). Thanks, Jeremy.
Picked for 3.3.5. Thanks!