From: Vibhav Pant <vibhavp@gmail.com> --- dlls/winebth.sys/dbus.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/winebth.sys/dbus.c b/dlls/winebth.sys/dbus.c index 4431f527f73..ccefe30c631 100644 --- a/dlls/winebth.sys/dbus.c +++ b/dlls/winebth.sys/dbus.c @@ -1059,8 +1059,11 @@ void bluez_gatt_characteristic_value_free( void *val ) { struct bluez_gatt_characteristic_value *value = val; - p_dbus_message_unref( value->message ); - free( value ); + if (value) + { + p_dbus_message_unref( value->message ); + free( value ); + } } void bluez_gatt_characteristic_value_move( struct winebluetooth_gatt_characteristic_value *value, BYTE *dest ) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10922