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
1144af45
Commit
1144af45
authored
Aug 18, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freeing stuff before using it is *stupid*. (<-- funman)
parent
07c92279
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/meta_engine/musicbrainz.c
modules/meta_engine/musicbrainz.c
+5
-3
No files found.
modules/meta_engine/musicbrainz.c
View file @
1144af45
...
@@ -89,8 +89,6 @@ static int GetData( vlc_object_t *p_obj, input_item_t *p_item,
...
@@ -89,8 +89,6 @@ static int GetData( vlc_object_t *p_obj, input_item_t *p_item,
free
(
psz_album
);
free
(
psz_album
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
free
(
psz_artist
);
free
(
psz_album
);
musicbrainz_t
p_mb
;
musicbrainz_t
p_mb
;
...
@@ -112,10 +110,14 @@ static int GetData( vlc_object_t *p_obj, input_item_t *p_item,
...
@@ -112,10 +110,14 @@ static int GetData( vlc_object_t *p_obj, input_item_t *p_item,
"</mq:FindAlbum>
\n
"
,
ppsz_args
)
)
"</mq:FindAlbum>
\n
"
,
ppsz_args
)
)
{
{
mb_GetQueryError
(
p_mb
,
psz_buf
,
256
);
mb_GetQueryError
(
p_mb
,
psz_buf
,
256
);
msg_Err
(
p_obj
,
"Query failed: %s
\n
"
,
psz_buf
);
msg_Err
(
p_obj
,
"Query failed: %s"
,
psz_buf
);
mb_Delete
(
p_mb
);
mb_Delete
(
p_mb
);
free
(
psz_artist
);
free
(
psz_album
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
free
(
psz_artist
);
free
(
psz_album
);
i_album_count
=
mb_GetResultInt
(
p_mb
,
MBE_GetNumAlbums
);
i_album_count
=
mb_GetResultInt
(
p_mb
,
MBE_GetNumAlbums
);
if
(
i_album_count
<
1
)
if
(
i_album_count
<
1
)
...
...
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