Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
3d5b9c5c
Commit
3d5b9c5c
authored
Feb 11, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one (of several) leaks in interaction
parent
f90f0553
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
src/interface/interaction.c
src/interface/interaction.c
+17
-5
No files found.
src/interface/interaction.c
View file @
3d5b9c5c
...
...
@@ -88,6 +88,14 @@ static int DialogSend( interaction_dialog_t * );
return VLC_EGENERIC; \
va_end( args )
static
inline
int
DialogFireForget
(
interaction_dialog_t
*
d
)
{
int
ret
=
DialogSend
(
d
);
if
(
ret
==
VLC_EGENERIC
)
DialogDestroy
(
d
);
return
ret
;
}
/**
* Send an error message, both in a blocking and non-blocking way
*
...
...
@@ -112,7 +120,7 @@ int __intf_UserFatal( vlc_object_t *p_this, bool b_blocking,
else
p_new
->
i_flags
=
DIALOG_NONBLOCKING_ERROR
;
return
Dialog
Send
(
p_new
);
return
Dialog
FireForget
(
p_new
);
}
/**
...
...
@@ -135,7 +143,7 @@ int __intf_UserWarn( vlc_object_t *p_this,
p_new
->
i_flags
=
DIALOG_WARNING
;
return
Dialog
Send
(
p_new
);
return
Dialog
FireForget
(
p_new
);
}
/**
...
...
@@ -165,7 +173,7 @@ int __intf_UserYesNo( vlc_object_t *p_this,
p_new
->
psz_alternate_button
=
strdup
(
psz_alternate
);
p_new
->
psz_other_button
=
psz_other
?
strdup
(
psz_other
)
:
NULL
;
return
Dialog
Send
(
p_new
);
return
Dialog
FireForget
(
p_new
);
}
/**
...
...
@@ -277,7 +285,9 @@ int __intf_UserLoginPassword( vlc_object_t *p_this,
i_ret
=
DialogSend
(
p_new
);
if
(
i_ret
!=
DIALOG_CANCELLED
&&
i_ret
!=
VLC_EGENERIC
)
if
(
i_ret
==
VLC_EGENERIC
)
DialogDestroy
(
p_new
);
else
if
(
i_ret
!=
DIALOG_CANCELLED
)
{
*
ppsz_login
=
p_new
->
psz_returned
[
0
]
?
strdup
(
p_new
->
psz_returned
[
0
]
)
:
NULL
;
...
...
@@ -311,7 +321,9 @@ int __intf_UserStringInput( vlc_object_t *p_this,
i_ret
=
DialogSend
(
p_new
);
if
(
i_ret
!=
DIALOG_CANCELLED
)
if
(
i_ret
==
VLC_EGENERIC
)
DialogDestroy
(
p_new
);
else
if
(
i_ret
!=
DIALOG_CANCELLED
)
{
*
ppsz_usersString
=
p_new
->
psz_returned
[
0
]
?
strdup
(
p_new
->
psz_returned
[
0
]
)
:
NULL
;
...
...
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