Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
571c3e12
Commit
571c3e12
authored
Mar 25, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python bindings : fix pyoptions_to_args and a memleak in the same time
parent
1bab8298
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
bindings/python/vlc_instance.c
bindings/python/vlc_instance.c
+3
-4
No files found.
bindings/python/vlc_instance.c
View file @
571c3e12
...
@@ -28,9 +28,6 @@ pyoptions_to_args(PyObject *py_options, char*** pppsz_args)
...
@@ -28,9 +28,6 @@ pyoptions_to_args(PyObject *py_options, char*** pppsz_args)
{
{
Py_ssize_t
i_size
;
Py_ssize_t
i_size
;
Py_ssize_t
i_index
;
Py_ssize_t
i_index
;
char
**
ppsz_args
=
*
pppsz_args
;
ppsz_args
=
NULL
;
Py_INCREF
(
py_options
);
Py_INCREF
(
py_options
);
if
(
!
PySequence_Check
(
py_options
)
)
if
(
!
PySequence_Check
(
py_options
)
)
...
@@ -39,7 +36,9 @@ pyoptions_to_args(PyObject *py_options, char*** pppsz_args)
...
@@ -39,7 +36,9 @@ pyoptions_to_args(PyObject *py_options, char*** pppsz_args)
return
-
1
;
return
-
1
;
}
}
i_size
=
PySequence_Size
(
py_options
);
i_size
=
PySequence_Size
(
py_options
);
ppsz_args
=
malloc
(
(
i_size
+
1
)
*
sizeof
(
char
*
)
);
char
**
ppsz_args
=
*
pppsz_args
=
malloc
(
(
i_size
+
1
)
*
sizeof
(
char
*
)
);
if
(
!
ppsz_args
)
if
(
!
ppsz_args
)
{
{
PyErr_SetString
(
PyExc_MemoryError
,
"Out of memory"
);
PyErr_SetString
(
PyExc_MemoryError
,
"Out of memory"
);
...
...
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