summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolodymyr Brynza <v.brynza@samsung.com>2017-04-06 13:59:52 +0300
committerVolodymyr Brynza <v.brynza@samsung.com>2017-05-12 14:35:11 +0300
commit76915684093378ae38837b06088ef959e0d653d3 (patch)
tree8c4a9ed12efcc272213fd83bf0a63e3b25e6d135
parente25ee486b2e66a00d0144a83bb4e2a8210375a31 (diff)
downloadmurphy-76915684093378ae38837b06088ef959e0d653d3.tar.gz
murphy-76915684093378ae38837b06088ef959e0d653d3.tar.bz2
murphy-76915684093378ae38837b06088ef959e0d653d3.zip
Change-Id: Ica5d1d2094edd492347a4dbb4e6851e6dfb5aea5 Signed-off-by: Volodymyr Brynza <v.brynza@samsung.com>
-rw-r--r--src/common/glib-glue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/glib-glue.c b/src/common/glib-glue.c
index 7cd469f..630ec37 100644
--- a/src/common/glib-glue.c
+++ b/src/common/glib-glue.c
@@ -182,7 +182,7 @@ static gboolean io_cb(GIOChannel *ioc, GIOCondition cond, gpointer user_data)
{
io_t *io = (io_t *)user_data;
glib_glue_t *glue = (glib_glue_t *)io->glue_data;
- glue_ref(glue);
+ g_return_val_if_fail(glue_ref(glue) != NULL, FALSE);
g_mutex_lock(&glue->glue_callback_lock);
mrp_io_event_t events = MRP_IO_EVENT_NONE;
int fd = g_io_channel_unix_get_fd(ioc);
@@ -275,7 +275,7 @@ static gboolean timer_cb(gpointer user_data)
tmr_t *t = (tmr_t *)user_data;
glib_glue_t *glue = (glib_glue_t *)t->glue_data;
- glue_ref(glue);
+ g_return_val_if_fail(glue_ref(glue) != NULL, FALSE);
g_mutex_lock(&glue->glue_callback_lock);
if (t->cb == NULL) {
@@ -356,7 +356,7 @@ static gboolean defer_cb(void *user_data)
dfr_t *d = (dfr_t *)user_data;
glib_glue_t *glue = (glib_glue_t *)d->glue_data;
- glue_ref(glue);
+ g_return_val_if_fail(glue_ref(glue) != NULL, FALSE);
g_mutex_lock(&glue->glue_callback_lock);
if (d->cb == NULL) {