SIGN IN SIGN UP

client API: fix memory leak with rejected events

The event was copied early, and wasn't released if it was rejected
instead of being added to the event queue. Fix by copying the event at a
point when it's certainly added to the event queue.

The dup_event_data() function is merely moved.
W
wm4 committed
f59f1e532e46779b1758bedf972fdfce3a74ea44
Parent: 866e0e1