Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c8616f0e
Commit
c8616f0e
authored
Oct 02, 2017
by
Sylvain Berfini
🐮
Browse files
Done ChatRoom::release
parent
38987363
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/chat/chat-room.cpp
View file @
c8616f0e
...
...
@@ -41,12 +41,7 @@ LINPHONE_BEGIN_NAMESPACE
ChatRoomPrivate
::
ChatRoomPrivate
(
LinphoneCore
*
core
)
:
core
(
core
),
isComposingHandler
(
core
,
this
)
{}
ChatRoomPrivate
::~
ChatRoomPrivate
()
{
/*for (auto &message : transientMessages)
linphone_chat_message_release(message);
if (pendingMessage)
linphone_chat_message_unref(pendingMessage);*/
}
ChatRoomPrivate
::~
ChatRoomPrivate
()
{}
// -----------------------------------------------------------------------------
...
...
@@ -92,10 +87,15 @@ void ChatRoomPrivate::release () {
L_Q
();
isComposingHandler
.
stopTimers
();
/*for (auto &message : weakMessages)
linphone_chat_message_deactivate(message);
for (auto &message : transientMessages)
linphone_chat_message_deactivate(message);*/
for
(
auto
&
message
:
weakMessages
)
{
shared_ptr
<
ChatMessage
>
msg
(
message
);
msg
->
cancelFileTransfer
();
msg
->
getPrivate
()
->
setChatRoom
(
nullptr
);
}
for
(
auto
&
message
:
transientMessages
)
{
message
->
cancelFileTransfer
();
message
->
getPrivate
()
->
setChatRoom
(
nullptr
);
}
core
=
nullptr
;
linphone_chat_room_unref
(
L_GET_C_BACK_PTR
(
q
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment