From 7fc174ffb9a025a792a603f47607bc9a6507dadb Mon Sep 17 00:00:00 2001 From: Derek Dai Date: Tue, 9 May 2017 16:50:37 +0800 Subject: [PATCH] miracle-dispd: minor tweaks of object life cycle transfering Change-Id: Iafefe39652d9ade06c58e41f091a30df274cb091 --- src/disp/wfd-out-session.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/disp/wfd-out-session.c b/src/disp/wfd-out-session.c index 4d7819f..6ff3ba7 100644 --- a/src/disp/wfd-out-session.c +++ b/src/disp/wfd-out-session.c @@ -834,8 +834,7 @@ static int wfd_out_session_request_trigger(struct wfd_session *s, return log_ERRNO(); } - *out = m; - m = NULL; + *out = (rtsp_message_ref(m), m); return 0; } @@ -898,8 +897,7 @@ static int wfd_out_session_request_set_parameter(struct wfd_session *s, return log_ERRNO(); } - *out = m; - m = NULL; + *out = (rtsp_message_ref(m), m); return 0; }