Enabled .pbf fonts : Opentype fonts, on Debian

Fixed a memory leak. Happens once, harmless.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@367 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2008-11-29 15:35:31 +00:00
parent 6413bdc474
commit bee5956c41
2 changed files with 3 additions and 5 deletions

5
main.c
View File

@ -219,16 +219,13 @@ void Analyse_de_la_ligne_de_commande(int argc,char * argv[])
// On récupère le chemin complet du paramètre
// Et on découpe ce chemin en répertoire(path) + fichier(.ext)
#if defined(__WIN32__)
Buffer = malloc(TAILLE_CHEMIN_FICHIER);
_fullpath(Buffer,argv[Indice],TAILLE_CHEMIN_FICHIER);
Buffer=_fullpath(NULL,argv[Indice],TAILLE_CHEMIN_FICHIER);
#else
Buffer=realpath(argv[Indice],NULL);
#endif
Extraire_chemin(Principal_Repertoire_fichier, Buffer);
Extraire_nom_fichier(Principal_Nom_fichier, Buffer);
#if defined(__WIN32__)
free(Buffer);
#endif
chdir(Principal_Repertoire_fichier);
}
else

View File

@ -119,6 +119,7 @@ void Ajout_fonte(const char *Nom)
case EXTID('t','t','f'):
case EXTID('f','o','n'):
case EXTID('o','t','f'):
case EXTID('p','f','b'):
Fonte->EstTrueType = 1;
Fonte->EstImage = 0;
break;