Commit 82102f85 authored by Peter Hutterer's avatar Peter Hutterer

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's avatarPeter Hutterer <>
parent b12084ef
Pipeline #44920 passed with stages
in 3 minutes and 30 seconds
......@@ -4257,6 +4257,9 @@ libinput_libwacom_ref(struct libinput *li)
libinput_libwacom_unref(struct libinput *li)
if (!li->libwacom.db)
assert(li->libwacom.refcount >= 1);
if (--li->libwacom.refcount == 0) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment