editor-workspace: use g_clear_pointer()

https://bugzilla.gnome.org/show_bug.cgi?id=741870