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
191f9ff5
Commit
191f9ff5
authored
Aug 03, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Audio Scrobbler: Fix some tiny memleaks.
parent
c24e8f31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+5
-1
No files found.
modules/misc/audioscrobbler.c
View file @
191f9ff5
...
@@ -950,7 +950,6 @@ static int ReadMetaData( intf_thread_t *p_this )
...
@@ -950,7 +950,6 @@ static int ReadMetaData( intf_thread_t *p_this )
free( psz_meta ); \
free( psz_meta ); \
return VLC_ENOMEM; \
return VLC_ENOMEM; \
} \
} \
free( psz_meta ); \
}
}
vlc_mutex_lock
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
...
@@ -966,6 +965,7 @@ static int ReadMetaData( intf_thread_t *p_this )
...
@@ -966,6 +965,7 @@ static int ReadMetaData( intf_thread_t *p_this )
free
(
psz_meta
);
free
(
psz_meta
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
free
(
psz_meta
);
ALLOC_ITEM_META
(
p_sys
->
p_current_song
.
psz_t
,
Title
)
ALLOC_ITEM_META
(
p_sys
->
p_current_song
.
psz_t
,
Title
)
else
else
...
@@ -977,6 +977,7 @@ static int ReadMetaData( intf_thread_t *p_this )
...
@@ -977,6 +977,7 @@ static int ReadMetaData( intf_thread_t *p_this )
free
(
psz_meta
);
free
(
psz_meta
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
free
(
psz_meta
);
/* Now we have read the mandatory meta data, so we can submit that info */
/* Now we have read the mandatory meta data, so we can submit that info */
p_sys
->
b_submit
=
true
;
p_sys
->
b_submit
=
true
;
...
@@ -984,16 +985,19 @@ static int ReadMetaData( intf_thread_t *p_this )
...
@@ -984,16 +985,19 @@ static int ReadMetaData( intf_thread_t *p_this )
ALLOC_ITEM_META
(
p_sys
->
p_current_song
.
psz_b
,
Album
)
ALLOC_ITEM_META
(
p_sys
->
p_current_song
.
psz_b
,
Album
)
else
else
p_sys
->
p_current_song
.
psz_b
=
calloc
(
1
,
1
);
p_sys
->
p_current_song
.
psz_b
=
calloc
(
1
,
1
);
free
(
psz_meta
);
ALLOC_ITEM_META
(
p_sys
->
p_current_song
.
psz_m
,
TrackID
)
ALLOC_ITEM_META
(
p_sys
->
p_current_song
.
psz_m
,
TrackID
)
else
else
p_sys
->
p_current_song
.
psz_m
=
calloc
(
1
,
1
);
p_sys
->
p_current_song
.
psz_m
=
calloc
(
1
,
1
);
free
(
psz_meta
);
p_sys
->
p_current_song
.
i_l
=
input_item_GetDuration
(
p_item
)
/
1000000
;
p_sys
->
p_current_song
.
i_l
=
input_item_GetDuration
(
p_item
)
/
1000000
;
ALLOC_ITEM_META
(
p_sys
->
p_current_song
.
psz_n
,
TrackNum
)
ALLOC_ITEM_META
(
p_sys
->
p_current_song
.
psz_n
,
TrackNum
)
else
else
p_sys
->
p_current_song
.
psz_n
=
calloc
(
1
,
1
);
p_sys
->
p_current_song
.
psz_n
=
calloc
(
1
,
1
);
free
(
psz_meta
);
#undef ALLOC_ITEM_META
#undef ALLOC_ITEM_META
msg_Dbg
(
p_this
,
"Meta data registered"
);
msg_Dbg
(
p_this
,
"Meta data registered"
);
...
...
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