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:
committed by
Manish Singh
parent
231cb64471
commit
31bfcc1a1d
@ -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>
|
2005-03-20 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* xdgmimeglob.c (_xdg_glob_hash_insert_text): Don't
|
* xdgmimeglob.c (_xdg_glob_hash_insert_text): Don't
|
||||||
|
|||||||
@ -242,7 +242,7 @@ _xdg_glob_hash_insert_text (XdgGlobHashNode *glob_hash_node,
|
|||||||
if (*text == '\000')
|
if (*text == '\000')
|
||||||
{
|
{
|
||||||
if (node->mime_type)
|
if (node->mime_type)
|
||||||
free (node->mime_type);
|
free ((void *) node->mime_type);
|
||||||
node->mime_type = mime_type;
|
node->mime_type = mime_type;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user