From: darpan.ka Date: Wed, 17 Apr 2013 05:31:15 +0000 (+0530) Subject: Calling g_io_channel_set_close_on_unref() after crating channel X-Git-Tag: accepted/tizen_2.1/20130425.034849~46^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82b2bd3aa635cbaa784b3d4acde6035c69ca8d0e;p=platform%2Fframework%2Fnative%2Fappfw.git Calling g_io_channel_set_close_on_unref() after crating channel Change-Id: I316a39e38e8572442c5d1bf60efd9060a1bea696 Signed-off-by: darpan.ka --- 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; }