Set the contact detail parent to avoid memory leak.

Change-Id: I4eed6039c398d537254441e4e5873838a7866c6c
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
Reviewed-by: Michael Krasnyk <michael.krasnyk@gmail.com>
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>