diff options
author | Manish Singh <yosh@gimp.org> | 2005-03-20 07:53:16 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2005-03-20 07:53:16 +0000 |
commit | 31bfcc1a1d296b6ae757fd230836bdc386e7b9f9 (patch) | |
tree | 62be2837c5ebc0299c24f994f5018350e0f399c8 /gtk/xdgmime | |
parent | 231cb64471ab7c136306a3b9e653774e62d4e5b5 (diff) | |
download | gtk+-31bfcc1a1d296b6ae757fd230836bdc386e7b9f9.tar.gz |
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().
Diffstat (limited to 'gtk/xdgmime')
-rw-r--r-- | gtk/xdgmime/ChangeLog | 5 | ||||
-rw-r--r-- | gtk/xdgmime/xdgmimeglob.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gtk/xdgmime/ChangeLog b/gtk/xdgmime/ChangeLog index 3bd89fed9a..02bf61bdac 100644 --- a/gtk/xdgmime/ChangeLog +++ b/gtk/xdgmime/ChangeLog @@ -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 diff --git a/gtk/xdgmime/xdgmimeglob.c b/gtk/xdgmime/xdgmimeglob.c index fb89e82023..e99eb834df 100644 --- a/gtk/xdgmime/xdgmimeglob.c +++ b/gtk/xdgmime/xdgmimeglob.c @@ -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 |