Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
79264035
Commit
79264035
authored
Feb 01, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./src/libvlc.c: fixed a segfault on exit, libvlc needs to be
detached before being destroyed.
parent
6d68e343
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/libvlc.c
src/libvlc.c
+9
-2
No files found.
src/libvlc.c
View file @
79264035
...
...
@@ -2,7 +2,7 @@
* libvlc.c: main libvlc source
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* $Id: libvlc.c,v 1.6
0 2003/01/31 13:52:26
sam Exp $
* $Id: libvlc.c,v 1.6
1 2003/02/01 18:53:03
sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -515,6 +515,11 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
free
(
psz_modules
);
}
/*
* FIXME: kludge to use a p_vlc-local variable for the Mozilla plugin
*/
var_Create
(
p_vlc
,
"drawable"
,
VLC_VAR_INTEGER
);
/*
* Get input filenames given as commandline arguments
*/
...
...
@@ -641,12 +646,14 @@ int VLC_Destroy( int i_object )
vlc_object_detach
(
p_vlc
);
/* Release object before destroying it */
if
(
i_object
)
vlc_object_release
(
p_vlc
);
vlc_object_destroy
(
p_vlc
);
/* Stop thread system: last one out please shut the door! */
vlc_threads_end
(
&
libvlc
);
if
(
i_object
)
vlc_object_release
(
p_vlc
);
return
VLC_SUCCESS
;
}
...
...
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