[ekiga] Fixed leak of gmconf notifiers in the call window



commit e1e5a9022a0a45c8a9367bc577b818c808867c85
Author: Julien Puydt <jpuydt free fr>
Date:   Wed Jun 19 15:39:06 2013 +0200

    Fixed leak of gmconf notifiers in the call window

 lib/engine/gui/gtk-frontend/call-window.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/call-window.cpp b/lib/engine/gui/gtk-frontend/call-window.cpp
index 340a730..5652a2b 100644
--- a/lib/engine/gui/gtk-frontend/call-window.cpp
+++ b/lib/engine/gui/gtk-frontend/call-window.cpp
@@ -179,6 +179,7 @@ struct _EkigaCallWindowPrivate
   GtkWidget *transfer_call_popup;
 
   Ekiga::scoped_connections connections;
+  std::list<gpointer> notifiers;
 };
 
 /* channel types */
@@ -2541,6 +2542,10 @@ ekiga_call_window_finalize (GObject *gobject)
   gtk_widget_destroy (cw->priv->audio_settings_window);
   gtk_widget_destroy (cw->priv->video_settings_window);
   gtk_widget_destroy (cw->priv->ext_video_win);
+  for (std::list<gpointer>::iterator iter = cw->priv->notifiers.begin ();
+       iter != cw->priv->notifiers.end ();
+       ++iter)
+    gm_conf_notifier_remove (*iter);
 
   delete cw->priv;
 


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