cast away the constness in the call to free().

Sat Mar 19 23:52:33 2005  Manish Singh  <yosh@gimp.org>

        * xdgmimeglob.c (_xdg_glob_hash_insert_text): cast away the constness
        in the call to free().
This commit is contained in:
Manish Singh 2005-03-20 07:53:16 +00:00 committed by Manish Singh
parent 231cb64471
commit 31bfcc1a1d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Mar 19 23:52:33 2005 Manish Singh <yosh@gimp.org>
* xdgmimeglob.c (_xdg_glob_hash_insert_text): cast away the constness
in the call to free().
2005-03-20 Matthias Clasen <mclasen@redhat.com>
* xdgmimeglob.c (_xdg_glob_hash_insert_text): Don't

View File

@ -242,7 +242,7 @@ _xdg_glob_hash_insert_text (XdgGlobHashNode *glob_hash_node,
if (*text == '\000')
{
if (node->mime_type)
free (node->mime_type);
free ((void *) node->mime_type);
node->mime_type = mime_type;
}
else