Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
12e055f6
Commit
12e055f6
authored
May 29, 2007
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python bindings, vlc_instance.c: fix memleak + use PyObject_DEL (patch
by Jan David Mol)
parent
11884b88
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 @
12e055f6
...
...
@@ -82,9 +82,6 @@ vlcInstance_new( PyTypeObject *type, PyObject *args, PyObject *kwds )
char
**
ppsz_args
=
NULL
;
int
i_size
=
0
;
self
=
PyObject_New
(
vlcInstance
,
&
vlcInstance_Type
);
if
(
PyArg_ParseTuple
(
args
,
"O"
,
&
py_list
)
)
{
i_size
=
pyoptions_to_args
(
py_list
,
&
ppsz_args
);
...
...
@@ -98,6 +95,8 @@ vlcInstance_new( PyTypeObject *type, PyObject *args, PyObject *kwds )
PyErr_Clear
(
);
}
self
=
PyObject_New
(
vlcInstance
,
&
vlcInstance_Type
);
Py_BEGIN_ALLOW_THREADS
LIBVLC_TRY
LIBVLC_INSTANCE
->
p_instance
=
libvlc_new
(
i_size
,
ppsz_args
,
&
ex
);
...
...
@@ -114,7 +113,7 @@ vlcInstance_dealloc( PyObject *self )
{
libvlc_exception_t
ex
;
libvlc_destroy
(
LIBVLC_INSTANCE
->
p_instance
,
&
ex
);
Py
Mem
_DEL
(
self
);
Py
Object
_DEL
(
self
);
}
static
PyObject
*
...
...
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