Mercurial > pidgin
diff libpurple/buddyicon.h @ 24074:2ecdd0403dc1
Don't try to read data from a NULL filename in
purple_buddy_icons_node_set_custom_icon_from_file. Also document that
you can use NULL to unset the icon.
Fixes #6998.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 07 Sep 2008 19:58:04 +0000 |
parents | d3fb9d9b57e2 |
children | 8282911d5e17 |
line wrap: on
line diff
--- a/libpurple/buddyicon.h Sun Sep 07 19:08:04 2008 +0000 +++ b/libpurple/buddyicon.h Sun Sep 07 19:58:04 2008 +0000 @@ -308,7 +308,7 @@ * * @param node The blist node for which to set a custom icon. * @param icon_data The image data of the icon, which the buddy icon code will - * free. + * free. Use NULL to unset the icon. * @param icon_len The length of the data in @a icon_data. * * @return The icon that was set. The caller does NOT own a reference to this, @@ -326,7 +326,8 @@ * @see purple_buddy_icons_node_set_custom_icon() * * @param node The blist node for which to set a custom icon. - * @param filename The path to the icon to set for the blist node. + * @param filename The path to the icon to set for the blist node. Use NULL + * to unset the custom icon. * * @return The icon that was set. The caller does NOT own a reference to this, * and must call purple_imgstore_ref() if it wants one.