Unref a GSource after destroyed 14/116114/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 23 Feb 2017 05:03:49 +0000 (14:03 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 23 Feb 2017 05:03:49 +0000 (14:03 +0900)
Change-Id: I7b3de80dc7a23b3ac2755f7dc2e84c11f283c78e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/server/Timer.cpp

index 34114e3..aa20f79 100644 (file)
@@ -216,6 +216,7 @@ void Timer::__removeGSource(ListenerInfo* info)
 {
        _D("Remove <Id: %u, Interval: %u ms>", info->timerId, info->intervalMs);
        g_source_destroy(info->gSrc);
+       g_source_unref(info->gSrc);
        delete info;
 }