forked from old/legacy-imlib2
parent
eb25c971c8
commit
0bfac5e70b
3
image.c
3
image.c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue