Commit a1bcd974 authored by Benjamin REIS's avatar Benjamin REIS

fix crash in case of body subscription without body

parent 4b4a8b01
......@@ -52,7 +52,7 @@ ListSubscription::~ListSubscription() {
belle_sip_source_cancel(mTimer);
belle_sip_object_unref(mTimer);
}
belle_sip_object_unref((void *)mName);
if (mName) belle_sip_object_unref((void *)mName);
SLOGD << "List subscription ["<< this <<"] deleted";
};
......
......@@ -92,7 +92,7 @@ protected:
* that corresponds to the list. Typically, this is the URI to which
* the SUBSCRIBE request was sent.
**/
const belle_sip_uri_t *mName;
const belle_sip_uri_t * = nullptr;;
private:
ListSubscription(const ListSubscription &);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment