diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 12:48:39 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 12:48:39 +0800 |
commit | 2e1dddbaa950db18e9d37be31879c969b49370cf (patch) | |
tree | 29c2a03cf5aaf7ae8ab01d053517fb727d224b15 | |
parent | c96cf752bdf51ab412544f8c366209f261416d8c (diff) |
Fix usage
-rw-r--r-- | worker.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -9,8 +9,10 @@ Worker::Worker() void Worker::logIn(QString const& name, QString const& password) { rtclient_login(name.toLatin1().constData(), password.toLatin1().constData()); - auto user = rtclient_userget(name.toLatin1().constData()); - rtclient_userfree(user); + struct rt_user *user = NULL; + rtclient_userget(&user, name.toLatin1().constData()); + if (user) + rtclient_userfree(user); } void Worker::search(QString const& owner) |