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
a9dfcaad
Commit
a9dfcaad
authored
Sep 14, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't leak the event manager.
parent
4045a1a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+13
-0
No files found.
src/playlist/services_discovery.c
View file @
a9dfcaad
...
...
@@ -33,6 +33,8 @@
#include "../libvlc.h"
static
void
services_discovery_Destructor
(
vlc_object_t
*
p_obj
);
/*
* Services discovery
* Basically you just listen to Service discovery event through the
...
...
@@ -71,6 +73,7 @@ services_discovery_t *vlc_sd_Create( vlc_object_t *p_super )
vlc_event_manager_register_event_type
(
&
p_sd
->
event_manager
,
vlc_ServicesDiscoveryEnded
);
vlc_object_set_destructor
(
p_sd
,
services_discovery_Destructor
);
vlc_object_attach
(
p_sd
,
p_super
);
return
p_sd
;
...
...
@@ -113,6 +116,16 @@ void vlc_sd_Stop ( services_discovery_t * p_sd )
p_sd
->
p_module
=
NULL
;
}
/***********************************************************************
* Destructor
***********************************************************************/
static
void
services_discovery_Destructor
(
vlc_object_t
*
p_obj
)
{
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_obj
;
assert
(
!
p_sd
->
p_module
);
/* Forgot to call Stop */
vlc_event_manager_fini
(
&
p_sd
->
event_manager
);
}
/***********************************************************************
* GetLocalizedName
***********************************************************************/
...
...
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