[ekiga] Correctly disconnect the connections in the preferences window code
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Correctly disconnect the connections in the preferences window code
- Date: Mon, 14 Jan 2013 19:35:36 +0000 (UTC)
commit a60c76f37754b7e26bcecb8e51fe46b87843b0d2
Author: Julien Puydt <jpuydt free fr>
Date: Mon Jan 14 20:35:27 2013 +0100
Correctly disconnect the connections in the preferences window code
Those connections were stored for this very purpose after all...
lib/engine/gui/gtk-frontend/preferences-window.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/preferences-window.cpp b/lib/engine/gui/gtk-frontend/preferences-window.cpp
index 7767462..71df968 100644
--- a/lib/engine/gui/gtk-frontend/preferences-window.cpp
+++ b/lib/engine/gui/gtk-frontend/preferences-window.cpp
@@ -58,6 +58,8 @@
typedef struct _GmPreferencesWindow
{
+ ~_GmPreferencesWindow();
+
GtkWidget *audio_codecs_list;
GtkWidget *sound_events_list;
GtkWidget *audio_player;
@@ -72,6 +74,13 @@ typedef struct _GmPreferencesWindow
#define GM_PREFERENCES_WINDOW(x) (GmPreferencesWindow *) (x)
+_GmPreferencesWindow::~_GmPreferencesWindow()
+{
+ for (std::vector<boost::signals::connection>::iterator iter = connections.begin ();
+ iter != connections.end ();
+ ++iter)
+ iter->disconnect ();
+}
/* Declarations */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]