Fixed bug 1148 : Double deallocation causes crashes during Workrave shutdown

Signed-off-by: Rob Caelers <rob.caelers@gmail.com>
Fixed compatibility with gnome-shell 3.10

Signed-off-by: Rob Caelers <rob.caelers@gmail.com>