If we never initialized the libwacom database, don't check the refcount
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 26 Jun 2019 04:15:09 +0000 (14:15 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 26 Jun 2019 04:15:09 +0000 (14:15 +1000)
commit82102f8599e1792b331557b9135404750ee0ada7
tree84c2f1766f52ea7073d6c98e8f9e50eca6893779
parentb12084ef76f73757e254208dd55cf2018842ff15
If we never initialized the libwacom database, don't check the refcount

If the libwacom context failed to initialize for some reason, the database is
NULL and the refcount remains at zero. Calling unref should just work then.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput.c