diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/glib-glue.c | 6 |
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) { |