*Always* use BKE_library API to handle IDs allocation and freeing, unless you have a very, very, very good reason not to do so - and perfectly know what you are doing.
*Always* use BKE_library API to handle IDs allocation and freeing, unless you have a very, very, very good reason not to do so - and perfectly know what you are doing.