Calling g_io_channel_set_close_on_unref() after crating channel
authordarpan.ka <darpan.ka@samsung.com>
Wed, 17 Apr 2013 05:31:15 +0000 (11:01 +0530)
committerdarpan.ka <darpan.ka@samsung.com>
Wed, 17 Apr 2013 05:31:15 +0000 (11:01 +0530)
Change-Id: I316a39e38e8572442c5d1bf60efd9060a1bea696
Signed-off-by: darpan.ka <darpan.ka@samsung.com>
src/base/runtime/FBaseRt_EventDispatcher.cpp
src/base/runtime/FBaseRt_EventManager.cpp
src/base/runtime/FBaseRt_MainLoop.cpp

index 9137277..d1bd46d 100644 (file)
@@ -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;
        }
 
index 4b1a81d..5f49426 100644 (file)
@@ -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)
index 7b9fcf6..426e52c 100644 (file)
@@ -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;
        }