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
76c884ab
Commit
76c884ab
authored
Sep 05, 2017
by
Ronan
Browse files
fix(core): avoid memory leaks
parent
f03164f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
coreapi/event.c
View file @
76c884ab
...
...
@@ -420,6 +420,9 @@ static void linphone_event_destroy(LinphoneEvent *lev){
if
(
lev
->
ei
)
linphone_error_info_unref
(
lev
->
ei
);
if
(
lev
->
op
)
sal_op_release
(
lev
->
op
);
if
(
lev
->
send_custom_headers
)
sal_custom_header_free
(
lev
->
send_custom_headers
);
if
(
lev
->
to_address
)
linphone_address_unref
(
lev
->
to_address
);
if
(
lev
->
from_address
)
linphone_address_unref
(
lev
->
from_address
);
ms_free
(
lev
->
name
);
}
...
...
coreapi/proxy.c
View file @
76c884ab
...
...
@@ -246,6 +246,9 @@ void _linphone_proxy_config_destroy(LinphoneProxyConfig *cfg){
if
(
cfg
->
ei
){
linphone_error_info_unref
(
cfg
->
ei
);
}
if
(
cfg
->
contact_address
)
linphone_address_unref
(
cfg
->
contact_address
);
_linphone_proxy_config_release_ops
(
cfg
);
}
...
...
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