metadata-store: set finalize function to clean up
metadata-store: set finalize function to clean up

514,040 (80 direct, 513,960 indirect) bytes in 1 blocks are definitely lost in loss record 19,311 of 19,314
   at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
   by 0x222277D6: sqlite3MemMalloc (sqlite3.c:20398)
   by 0x22202967: mallocWithAlarm (sqlite3.c:24067)
   by 0x22202967: sqlite3Malloc (sqlite3.c:24098)
   by 0x22202A0D: sqlite3MallocZero (sqlite3.c:24398)
   by 0x222499F5: sqlite3BtreeOpen (sqlite3.c:60320)
   by 0x22297786: openDatabase (sqlite3.c:139437)
   by 0x2662D0B0: grl_metadata_store_source_init (grl-metadata-store.c:237)
   by 0x53C07FA: g_type_create_instance (gtype.c:1866)
   by 0x53A269A: g_object_new_internal (gobject.c:1783)
   by 0x53A45AD: g_object_new_valist (gobject.c:2042)
   by 0x53A4850: g_object_new (gobject.c:1626)
   by 0x2662CF9E: grl_metadata_store_source_new (grl-metadata-store.c:194)
   by 0x2662CF9E: grl_metadata_store_source_plugin_init (grl-metadata-store.c:167)

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

jasuarez/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins