[ekiga] In debug mode, Ekiga::ServiceCore now tells how many dangling references the leaked services have



commit 150d37c7f81986e1388c6a31cc4dd20b40d1931e
Author: Julien Puydt <jpuydt free fr>
Date:   Mon Jan 21 17:14:07 2013 +0100

    In debug mode, Ekiga::ServiceCore now tells how many dangling references the leaked services have

 lib/engine/framework/services.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/framework/services.cpp b/lib/engine/framework/services.cpp
index 25b6e66..ce7ec12 100644
--- a/lib/engine/framework/services.cpp
+++ b/lib/engine/framework/services.cpp
@@ -95,6 +95,9 @@ Ekiga::ServiceCore::~ServiceCore ()
       std::cout << "Ekiga::ServiceCore: "
 		<< service->get_name()
 		<< " hasn't been freed correctly!"
+		<< " (with "
+		<< service.use_count() - 1
+		<< " dangling references)"
 		<< std::endl;
     }
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]