From bb224bafd043e07fd18e3d8cda2c3f41c132e507 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch 
Date: Sat, 11 Aug 2012 21:00:38 +0200
Subject: More fixing.
* Fix a resource leak in LdLibrary.
* Add missing property change notifiers
  to ld_diagram_object_{get,set}_storage().
* Don't unref the parameter in ld_symbol_category_remove_{symbol,subcategory}
  if it wasn't actually removed from the internal list.
* Fix a cyclic dependency problem in LdDiagram.
---
 liblogdiag/ld-library.c | 3 +++
 1 file changed, 3 insertions(+)
(limited to 'liblogdiag/ld-library.c')
diff --git a/liblogdiag/ld-library.c b/liblogdiag/ld-library.c
index 13242a1..8f07720 100644
--- a/liblogdiag/ld-library.c
+++ b/liblogdiag/ld-library.c
@@ -378,7 +378,10 @@ ld_library_load_cb (const gchar *base, const gchar *filename, gpointer userdata)
 
 	cat = load_category (data->self, filename, base);
 	if (cat)
+	{
 		ld_library_insert_category (data->self, cat, -1);
+		g_object_unref (cat);
+	}
 
 	data->changed = TRUE;
 	return TRUE;
-- 
cgit v1.2.3-70-g09d2