Skip to content

Commit

Permalink
removed leak
Browse files Browse the repository at this point in the history
  • Loading branch information
gaaclarke committed Nov 22, 2022
1 parent e9356c6 commit 9782710
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shell/platform/linux/fl_binary_messenger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ static void set_message_handler_on_channel(
static gboolean has_message_handler_on_channel(FlBinaryMessenger* messenger,
const gchar* channel) {
FlBinaryMessengerImpl* self = FL_BINARY_MESSENGER_IMPL(messenger);
return g_hash_table_contains(self->platform_message_handlers,
g_strdup(channel));
return g_hash_table_contains(self->platform_message_handlers, channel);
}

gboolean do_unref(gpointer value) {
Expand Down

0 comments on commit 9782710

Please sign in to comment.