Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Vorbis tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
61
Issues
61
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Vorbis tools
Commits
287442b1
Commit
287442b1
authored
Mar 30, 2002
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More memory leak fixes.
svn path=/trunk/vorbis-tools/; revision=3206
parent
a8e99cc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
vorbiscomment/vcedit.c
vorbiscomment/vcedit.c
+2
-1
vorbiscomment/vcomment.c
vorbiscomment/vcomment.c
+12
-0
No files found.
vorbiscomment/vcedit.c
View file @
287442b1
...
...
@@ -6,7 +6,7 @@
*
* Comment editing backend, suitable for use by nice frontend interfaces.
*
* last modified: $Id: vcedit.c,v 1.1
7 2002/01/26 11:06:43 segher
Exp $
* last modified: $Id: vcedit.c,v 1.1
8 2002/03/30 14:40:59 msmith
Exp $
*/
#include <stdio.h>
...
...
@@ -124,6 +124,7 @@ static int _commentheader_out(vorbis_comment *vc, char *vendor, ogg_packet *op)
op
->
e_o_s
=
0
;
op
->
granulepos
=
0
;
oggpack_writeclear
(
&
opb
);
return
0
;
}
...
...
vorbiscomment/vcomment.c
View file @
287442b1
...
...
@@ -55,6 +55,7 @@ void print_comments(FILE *out, vorbis_comment *vc, int raw);
int
add_comment
(
char
*
line
,
vorbis_comment
*
vc
,
int
raw
);
param_t
*
new_param
(
void
);
void
free_param
(
param_t
*
param
);
void
parse_options
(
int
argc
,
char
*
argv
[],
param_t
*
param
);
void
open_files
(
param_t
*
p
);
void
close_files
(
param_t
*
p
);
...
...
@@ -101,6 +102,7 @@ int main(int argc, char **argv)
{
fprintf
(
stderr
,
_
(
"Failed to open file as vorbis: %s
\n
"
),
vcedit_error
(
state
));
free_param
(
param
);
return
1
;
}
...
...
@@ -112,6 +114,7 @@ int main(int argc, char **argv)
vcedit_clear
(
state
);
close_files
(
param
);
free_param
(
param
);
return
0
;
}
...
...
@@ -123,6 +126,7 @@ int main(int argc, char **argv)
{
fprintf
(
stderr
,
_
(
"Failed to open file as vorbis: %s
\n
"
),
vcedit_error
(
state
));
free_param
(
param
);
return
1
;
}
...
...
@@ -161,6 +165,7 @@ int main(int argc, char **argv)
{
fprintf
(
stderr
,
_
(
"Failed to write comments to output file: %s
\n
"
),
vcedit_error
(
state
));
free_param
(
param
);
return
1
;
}
...
...
@@ -168,11 +173,13 @@ int main(int argc, char **argv)
vcedit_clear
(
state
);
close_files
(
param
);
free_param
(
param
);
return
0
;
}
/* should never reach this point */
fprintf
(
stderr
,
_
(
"no action specified
\n
"
));
free_param
(
param
);
return
1
;
}
...
...
@@ -298,6 +305,11 @@ void usage(void)
);
}
void
free_param
(
param_t
*
param
)
{
free
(
param
->
infilename
);
free
(
param
->
outfilename
);
free
(
param
);
}
/**********
...
...
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