From 82b2bd3aa635cbaa784b3d4acde6035c69ca8d0e Mon Sep 17 00:00:00 2001 From: "darpan.ka" Date: Wed, 17 Apr 2013 11:01:15 +0530 Subject: [PATCH] Calling g_io_channel_set_close_on_unref() after crating channel Change-Id: I316a39e38e8572442c5d1bf60efd9060a1bea696 Signed-off-by: darpan.ka --- src/base/runtime/FBaseRt_EventDispatcher.cpp | 4 ++-- src/base/runtime/FBaseRt_EventManager.cpp | 4 ++-- src/base/runtime/FBaseRt_MainLoop.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/base/runtime/FBaseRt_EventDispatcher.cpp b/src/base/runtime/FBaseRt_EventDispatcher.cpp index 9137277..d1bd46d 100644 --- a/src/base/runtime/FBaseRt_EventDispatcher.cpp +++ b/src/base/runtime/FBaseRt_EventDispatcher.cpp @@ -54,8 +54,8 @@ _EventDispatcher::~_EventDispatcher(void) { if (__pEventFdSource) { - g_source_unref(__pEventFdSource); g_source_destroy(__pEventFdSource); + g_source_unref(__pEventFdSource); __pEventFdSource = null; } @@ -119,8 +119,8 @@ CATCH: if (__pEventFdSource) { - g_source_unref(__pEventFdSource); g_source_destroy(__pEventFdSource); + g_source_unref(__pEventFdSource); __pEventFdSource = null; } diff --git a/src/base/runtime/FBaseRt_EventManager.cpp b/src/base/runtime/FBaseRt_EventManager.cpp index 4b1a81d..5f49426 100644 --- a/src/base/runtime/FBaseRt_EventManager.cpp +++ b/src/base/runtime/FBaseRt_EventManager.cpp @@ -95,8 +95,8 @@ _EventManager::~_EventManager(void) if (__pSource) { - g_source_unref(__pSource); g_source_destroy(__pSource); + g_source_unref(__pSource); } if (__pChannel) @@ -157,8 +157,8 @@ CATCH: if (pSource) { - g_source_unref(pSource); g_source_destroy(pSource); + g_source_unref(pSource); } if (pChannel) diff --git a/src/base/runtime/FBaseRt_MainLoop.cpp b/src/base/runtime/FBaseRt_MainLoop.cpp index 7b9fcf6..426e52c 100644 --- a/src/base/runtime/FBaseRt_MainLoop.cpp +++ b/src/base/runtime/FBaseRt_MainLoop.cpp @@ -84,8 +84,8 @@ _MainLoop::~_MainLoop(void) if (__pSource) { - g_source_unref(__pSource); g_source_destroy(__pSource); + g_source_unref(__pSource); __pSource = null; } @@ -146,8 +146,8 @@ CATCH: if (__pSource) { - g_source_unref(__pSource); g_source_destroy(__pSource); + g_source_unref(__pSource); __pSource = null; } -- 2.7.4