Bug #655253 - fix regression introduced with MOD_ONLY_THIS
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 14 Sep 2011 15:05:42 +0000 (17:05 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Thu, 15 Sep 2011 06:33:45 +0000 (08:33 +0200)
commit2e576d8cb05dfcc33d10fc23b4c7543b2205506f
tree1e8b16bbb4af452669ffad904a63f87fc39912ab
parentdf5f467aa7cf8437b3161763ffbf503020c50130
Bug #655253 - fix regression introduced with MOD_ONLY_THIS

Part of the code reorganization was removal of check_dup_uid() from
the normal "add component" code paths. It was only done as sanity
check when loading a file. That sanity check then incorrectly rewrote
UIDs, because it didn't take into account that detached recurrences
have (and must have) the same UID as the recurring master event.

This patch fixes check_dup_uid() accordingly. It moves the
uid g_free() into the bottom of the function to have a common
cleanup section.
calendar/backends/file/e-cal-backend-file.c