[ekiga/ds-fix-boost-leaks] CallWindow: Fixed GTK warning.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-fix-boost-leaks] CallWindow: Fixed GTK warning.
- Date: Sun, 11 Oct 2015 14:44:14 +0000 (UTC)
commit aaf7bee04f9a077cc2ff01f5839c59b1bbda7aad
Author: Damien Sandras <dsandras seconix com>
Date: Sun Oct 11 16:43:42 2015 +0200
CallWindow: Fixed GTK warning.
Only try removing source timeouts when there are any.
lib/engine/gui/gtk-frontend/call-window.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/call-window.cpp b/lib/engine/gui/gtk-frontend/call-window.cpp
index 16d4cf4..bf13be4 100644
--- a/lib/engine/gui/gtk-frontend/call-window.cpp
+++ b/lib/engine/gui/gtk-frontend/call-window.cpp
@@ -763,8 +763,12 @@ on_cleared_call_cb (boost::shared_ptr<Ekiga::Call> call,
if (self->priv->current_call) {
self->priv->current_call = boost::shared_ptr<Ekiga::Call>();
- g_source_remove (self->priv->destroy_timeout_id);
- g_source_remove (self->priv->timeout_id);
+
+ if (self->priv->destroy_timeout_id > 0)
+ g_source_remove (self->priv->destroy_timeout_id);
+ if (self->priv->timeout_id > 0)
+ g_source_remove (self->priv->timeout_id);
+
self->priv->destroy_timeout_id = 0;
self->priv->timeout_id = 0;
self->priv->bad_connection = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]