Fix memory leaks in custom actions.

1 file changed