connectionPTOConnection conn = do
  when (conn == nullPtr) $ fail "null connection"
  newForeignPtr connection_unref conn

-- |Force the dereference of a connection. Note that this is usually not
-- necessary since the connections are garbage collected automatically.
connectionPTOConnection conn = do
  when (conn == nullPtr) $ fail "null connection"
  newForeignPtr connection_unref conn

-- |Force the dereference of a connection. Note that this is usually not
-- necessary since the connections are garbage collected automatically.
connectionPTOConnection conn = do
  when (conn == nullPtr) $ fail "null connection"
  newForeignPtr connection_unref conn

-- |Force the dereference of a connection. Note that this is usually not
-- necessary since the connections are garbage collected automatically.