This commit is contained in:
Timur Bakeyev 1999-02-28 21:18:20 +00:00
parent c4673ab366
commit f1c707deb6
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Mon Mar 1 00:18:48 1999 Timur Bakeyev <mc@bat.ru>
* mad.c: Tempnam() returns malloced buffer, so, free() it, not g_free().
1999-02-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
* view.c (view_percent, view_update): Take an extra argument:

View File

@ -267,9 +267,9 @@ void mad_free (void *ptr, char *file, int line)
char *mad_tempnam (char *a, char *b)
{
char *t, *u;
t = tempnam(a,b);
t = tempnam(a,b); /* This malloc's internal buffer.. */
u = mad_strdup(t, "(mad_tempnam)", 0);
g_free(t);
free(t);
return u;
}