Skip to content

Commit

Permalink
Fix FlTextInputPlugin tear down (#22007)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Oct 29, 2020
1 parent 28497c8 commit bb32446
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions shell/platform/linux/fl_text_input_plugin.cc
Expand Up @@ -423,11 +423,6 @@ static void method_call_cb(FlMethodChannel* channel,
}
}

static void view_weak_notify_cb(gpointer user_data, GObject* object) {
FlTextInputPlugin* self = FL_TEXT_INPUT_PLUGIN(object);
self->view = nullptr;
}

static void fl_text_input_plugin_dispose(GObject* object) {
FlTextInputPlugin* self = FL_TEXT_INPUT_PLUGIN(object);

Expand All @@ -438,6 +433,7 @@ static void fl_text_input_plugin_dispose(GObject* object) {
delete self->text_model;
self->text_model = nullptr;
}
self->view = nullptr;

G_OBJECT_CLASS(fl_text_input_plugin_parent_class)->dispose(object);
}
Expand Down Expand Up @@ -483,7 +479,6 @@ FlTextInputPlugin* fl_text_input_plugin_new(FlBinaryMessenger* messenger,
fl_method_channel_set_method_call_handler(self->channel, method_call_cb, self,
nullptr);
self->view = view;
g_object_weak_ref(G_OBJECT(view), view_weak_notify_cb, self);

return self;
}
Expand Down

0 comments on commit bb32446

Please sign in to comment.