diff --git a/src/ContentLock/ContentLock.php b/src/ContentLock/ContentLock.php
index 0282295..fd20be3 100644
--- a/src/ContentLock/ContentLock.php
+++ b/src/ContentLock/ContentLock.php
@@ -350,7 +350,7 @@ class ContentLock extends ServiceProviderBase {
     $query = $this->database->delete('content_lock')
       ->condition('entity_type', $entity_type)
       ->condition('entity_id', $entity_id)
-      ->condition('langcode', $langcode);
+      ->condition('langcode', $langcode->getId());
     if (isset($form_op)) {
       $query->condition('form_op', $form_op);
     }
