forked from AuroraMiddleware/gtk
Don't leak node->mime_type if we are reusing an existing node. (#170774,
2005-03-20 Matthias Clasen <mclasen@redhat.com> * xdgmimeglob.c (_xdg_glob_hash_insert_text): Don't leak node->mime_type if we are reusing an existing node. (#170774, Kjartan Maraas)
This commit is contained in:
parent
cca8dd6347
commit
231cb64471
@ -1,3 +1,9 @@
|
|||||||
|
2005-03-20 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* xdgmimeglob.c (_xdg_glob_hash_insert_text): Don't
|
||||||
|
leak node->mime_type if we are reusing an existing
|
||||||
|
node. (#170774, Kjartan Maraas)
|
||||||
|
|
||||||
2005-01-08 Matthias Clasen <mclasen@redhat.com>
|
2005-01-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* === Released 2.6.1 ===
|
* === Released 2.6.1 ===
|
||||||
|
@ -241,6 +241,8 @@ _xdg_glob_hash_insert_text (XdgGlobHashNode *glob_hash_node,
|
|||||||
text = _xdg_utf8_next_char (text);
|
text = _xdg_utf8_next_char (text);
|
||||||
if (*text == '\000')
|
if (*text == '\000')
|
||||||
{
|
{
|
||||||
|
if (node->mime_type)
|
||||||
|
free (node->mime_type);
|
||||||
node->mime_type = mime_type;
|
node->mime_type = mime_type;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user