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
db1ba073
Commit
db1ba073
authored
Jun 08, 2011
by
Mirsal Ennaime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: fix memleaks
parent
b0d7c77b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
modules/control/dbus/dbus_player.c
modules/control/dbus/dbus_player.c
+2
-0
modules/control/dbus/dbus_tracklist.c
modules/control/dbus/dbus_tracklist.c
+6
-0
No files found.
modules/control/dbus/dbus_player.c
View file @
db1ba073
...
@@ -971,12 +971,14 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
...
@@ -971,12 +971,14 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
dbus_message_iter_close_container
(
&
entry
,
&
variant
);
dbus_message_iter_close_container
(
&
entry
,
&
variant
);
}
}
dbus_message_iter_close_container
(
&
changed_properties
,
&
entry
);
dbus_message_iter_close_container
(
&
changed_properties
,
&
entry
);
free
(
ppsz_properties
[
i
]
);
}
}
dbus_message_iter_close_container
(
&
args
,
&
changed_properties
);
dbus_message_iter_close_container
(
&
args
,
&
changed_properties
);
dbus_message_iter_open_container
(
&
args
,
DBUS_TYPE_ARRAY
,
"s"
,
dbus_message_iter_open_container
(
&
args
,
DBUS_TYPE_ARRAY
,
"s"
,
&
invalidated_properties
);
&
invalidated_properties
);
dbus_message_iter_close_container
(
&
args
,
&
invalidated_properties
);
dbus_message_iter_close_container
(
&
args
,
&
invalidated_properties
);
free
(
ppsz_properties
);
SIGNAL_SEND
;
SIGNAL_SEND
;
}
}
...
...
modules/control/dbus/dbus_tracklist.c
View file @
db1ba073
...
@@ -387,12 +387,18 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
...
@@ -387,12 +387,18 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
ppsz_properties
=
vlc_dictionary_all_keys
(
p_changed_properties
);
ppsz_properties
=
vlc_dictionary_all_keys
(
p_changed_properties
);
for
(
int
i
=
0
;
i
<
i_properties
;
i
++
)
for
(
int
i
=
0
;
i
<
i_properties
;
i
++
)
{
if
(
!
strcmp
(
ppsz_properties
[
i
],
"Tracks"
)
)
if
(
!
strcmp
(
ppsz_properties
[
i
],
"Tracks"
)
)
dbus_message_iter_append_basic
(
&
invalidated_properties
,
dbus_message_iter_append_basic
(
&
invalidated_properties
,
DBUS_TYPE_STRING
,
DBUS_TYPE_STRING
,
&
ppsz_properties
[
i
]
);
&
ppsz_properties
[
i
]
);
free
(
ppsz_properties
[
i
]
);
}
dbus_message_iter_close_container
(
&
args
,
&
invalidated_properties
);
dbus_message_iter_close_container
(
&
args
,
&
invalidated_properties
);
free
(
ppsz_properties
);
SIGNAL_SEND
;
SIGNAL_SEND
;
}
}
...
...
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