The destructor of RedisQtAdapter will be called _AFTER_ the context has been freed. At this point, m_ctx is a dangling pointer and should not be dereferenced.