diff options
author | Volodymyr Brynza <v.brynza@samsung.com> | 2016-07-01 15:41:48 +0300 |
---|---|---|
committer | Volodymyr Brynza <v.brynza@samsung.com> | 2016-07-01 15:41:48 +0300 |
commit | e5f9fb7a5febd2922ae3344c7f29a73297379bb4 (patch) | |
tree | da0fe1bf5930d9c7ca0f0376a1153897c7077d8e /src | |
parent | 3d0ef3fccb42a52deb43d5b932c24c9f6ad86ec9 (diff) | |
download | murphy-e5f9fb7a5febd2922ae3344c7f29a73297379bb4.tar.gz murphy-e5f9fb7a5febd2922ae3344c7f29a73297379bb4.tar.bz2 murphy-e5f9fb7a5febd2922ae3344c7f29a73297379bb4.zip |
add pointer Null check in mod_defer callbacksubmit/tizen/20160704.004002accepted/tizen/wearable/20160704.090407accepted/tizen/tv/20160704.090512accepted/tizen/mobile/20160704.090533accepted/tizen/ivi/20160704.090624accepted/tizen/common/20160704.145302
Change-Id: Ia89beb2dcb88e26da39c3770bc83843ef0e0b926
Signed-off-by: Volodymyr Brynza <v.brynza@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/common/glib-glue.c | 3 |
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) { |