[ekiga] Made the call_core variable life shorter : it's easier to see there's no reference leak here



commit a42e97cd8e15118095b2e2a86a818f4751aeb862
Author: Julien Puydt <jpuydt free fr>
Date:   Fri Jun 8 19:29:21 2012 +0200

    Made the call_core variable life shorter : it's easier to see there's no reference leak here

 src/gui/main.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index bcc520d..273648e 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -191,7 +191,6 @@ main (int argc,
 
   GnomeMeeting::Process ()->BuildGUI (service_core);
   main_window = GnomeMeeting::Process ()->GetMainWindow ();
-  boost::shared_ptr<Ekiga::CallCore> call_core = service_core->get<Ekiga::CallCore> ("call-core");
 
   const int schema_version = MAJOR_VERSION * 1000
                              + MINOR_VERSION * 10
@@ -216,8 +215,11 @@ main (int argc,
   }
 
   /* Call the given host if needed */
-  if (url)
+  if (url) {
+
+    boost::shared_ptr<Ekiga::CallCore> call_core = service_core->get<Ekiga::CallCore> ("call-core");
     call_core->dial (url);
+  }
 
 #ifdef HAVE_DBUS
   EkigaDBusComponent *dbus_component = ekiga_dbus_component_new (service_core);



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