Merge: mongo: fixes more crashes from mongodb api
authorJean Privat <jean@pryen.org>
Mon, 30 Nov 2015 15:09:20 +0000 (10:09 -0500)
committerJean Privat <jean@pryen.org>
Mon, 30 Nov 2015 15:09:20 +0000 (10:09 -0500)
This PR add two more fixes since #1855 :
* use `FinalizableOnce` instead of `Finalizable`
* copy bson structs returned by `mongoc_cursor_item`

Pull-Request: #1866
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Romain Chanoir <romain.chanoir@viacesi.fr>


Trivial merge