summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2019-05-08 16:56:47 +0200
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2019-05-08 16:59:26 +0200
commit647f9e05561ea472e2bac4d582f0b47ba087e974 (patch)
treec6d68edf57247467ed564da24dff68f217bfc50d
parent3efe8ad3c5896abf926249026e6ace00bfcd9288 (diff)
The on_reply callback unrefs the msg pointer, but that's already unref by the application framework after the callback returns. Bug-AGL : SPEC-2310 Change-Id: Ifda4f42889d3ea61f317e7919d7a506d3b4402b8 Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
-rw-r--r--src/libwindowmanager.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libwindowmanager.cpp b/src/libwindowmanager.cpp
index 8e523b2..65684f1 100644
--- a/src/libwindowmanager.cpp
+++ b/src/libwindowmanager.cpp
@@ -709,7 +709,6 @@ private:
callsync *call = reinterpret_cast<callsync*>(closure);
call->onReply_(call->ok_ = afb_wsj1_msg_is_reply_ok(msg), afb_wsj1_msg_object_j(msg));
call->cond_.notify_one();
- afb_wsj1_msg_unref(msg);
}
public:
callsync(