Fix object memory freeing for all cases
Fix object memory freeing for all cases

freedesktop-unofficial-mirror/openchrome__xf86-video-openchrome,freedesktop-unofficial-mirror/openchrome__xf86-video-openchrome,freedesktop-unofficial-mirror/openchrome__xf86-video-openchrome,freedesktop-unofficial-mirror/openchrome__xf86-video-openchrome