diff options
author | Volodymyr Brynza <v.brynza@samsung.com> | 2017-04-06 13:59:52 +0300 |
---|---|---|
committer | Volodymyr Brynza <v.brynza@samsung.com> | 2017-05-12 14:35:11 +0300 |
commit | 76915684093378ae38837b06088ef959e0d653d3 (patch) | |
tree | 8c4a9ed12efcc272213fd83bf0a63e3b25e6d135 | |
parent | e25ee486b2e66a00d0144a83bb4e2a8210375a31 (diff) | |
download | murphy-76915684093378ae38837b06088ef959e0d653d3.tar.gz murphy-76915684093378ae38837b06088ef959e0d653d3.tar.bz2 murphy-76915684093378ae38837b06088ef959e0d653d3.zip |
Check glue_ref return valuesubmit/tizen_3.0/20170518.094523accepted/tizen/3.0/wearable/20170519.070009accepted/tizen/3.0/tv/20170519.070007accepted/tizen/3.0/mobile/20170519.070005accepted/tizen/3.0/ivi/20170519.070011accepted/tizen/3.0/common/20170519.190034tizen_3.0accepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_common
Change-Id: Ica5d1d2094edd492347a4dbb4e6851e6dfb5aea5
Signed-off-by: Volodymyr Brynza <v.brynza@samsung.com>
-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) { |