Fix crash with g_variant_unref
authorJiwan Kim <ji-wan.kim@samsung.com>
Wed, 8 Feb 2017 05:56:00 +0000 (14:56 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Thu, 11 May 2017 09:07:20 +0000 (18:07 +0900)
commit9998f39ca5731a73b7a2a88a55c24acb959cce2f
treeb31d2ba5056bbd65a5d39e6641a6a7ec5e13b02d
parent288b06a199525106237d5c19d60c4c288b859016
Fix crash with g_variant_unref

- With 'enable' method, g_dbus_proxy_call_sync() returns GVariant
  and g_variant_get() deconstructs that GVariant instance.
- It causes below error and sometimes crashes.
  [g_variant_unref: assertion 'value != NULL' failed]
- Testing with another method, issue was not found with g_variant_unref()
- Patch newly uploaded due to merge conflict.
  (Previous patch : http://165.213.149.170/gerrit/#/c/151298/)

Change-Id: I4c8b7aadcd96a6e5b86f6136e85a1e7ed48588ae
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
lib/zbl-dbus.c