whee more robus tagging...

SVN revision: 1101
This commit is contained in:
Carsten Haitzler 1999-11-01 15:30:56 +00:00
parent eb25c971c8
commit 0bfac5e70b
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ __imlib_AttachTag(ImlibImage *im, char *key, int val, void *data,
if (!key)
return;
/* if a tag of that name alreayd exists - remove it and free it */
if (t = __imlib_RemoveTag(im, key))
__imlib_FreeTag(im, t);
/* allocate the struct */
t = malloc(sizeof(ImlibImageTag));
/* fill it int */