summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVolodymyr Brynza <v.brynza@samsung.com>2016-07-01 15:41:48 +0300
committerVolodymyr Brynza <v.brynza@samsung.com>2016-07-01 15:41:48 +0300
commite5f9fb7a5febd2922ae3344c7f29a73297379bb4 (patch)
treeda0fe1bf5930d9c7ca0f0376a1153897c7077d8e /src
parent3d0ef3fccb42a52deb43d5b932c24c9f6ad86ec9 (diff)
downloadmurphy-e5f9fb7a5febd2922ae3344c7f29a73297379bb4.tar.gz
murphy-e5f9fb7a5febd2922ae3344c7f29a73297379bb4.tar.bz2
murphy-e5f9fb7a5febd2922ae3344c7f29a73297379bb4.zip
Change-Id: Ia89beb2dcb88e26da39c3770bc83843ef0e0b926 Signed-off-by: Volodymyr Brynza <v.brynza@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/common/glib-glue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/glib-glue.c b/src/common/glib-glue.c
index 247744d..1678b96 100644
--- a/src/common/glib-glue.c
+++ b/src/common/glib-glue.c
@@ -296,6 +296,9 @@ static void mod_defer(void *glue_data, void *id, int enabled)
MRP_UNUSED(glue_data);
+ if (d == NULL)
+ return;
+
if (enabled && !d->gl_t)
d->gl_t = g_timeout_add(0, defer_cb, d);
else if (!enabled && d->gl_t) {