Skip to content

Commit

Permalink
Fix use-after-free bug in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Guérin authored and sardemff7 committed Jun 1, 2018
1 parent 72f61c1 commit 67987f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/purple-libnotify+-utils.c
Expand Up @@ -207,10 +207,12 @@ notify_plus_send_buddy_notification(PurpleBuddy *buddy, const gchar *action, con
GdkPixbuf *icon = NULL;
if ( protocol_name != NULL )
icon = _notify_plus_get_buddy_pixbuf(buddy, ( protocol_icon_filename != NULL ) ? (protocol_icon_filename+7) : (protocol_icon_uri+7));

notify_plus_send_name_notification(buddy_name, action, body, protocol_icon_uri, icon);

g_free(protocol_icon_filename);
g_free(protocol_icon_uri);

notify_plus_send_name_notification(buddy_name, action, body, protocol_icon_uri, icon);
if ( icon != NULL )
g_object_unref(icon);
}
Expand Down

0 comments on commit 67987f8

Please sign in to comment.