Commit b632ea0d authored by Cimbali's avatar Cimbali
Browse files

Free additional actions in glib form fields and screen annots

parent 52486410
Pipeline #749123 passed with stages
in 5 minutes and 7 seconds
......@@ -487,6 +487,38 @@ static void poppler_annot_screen_finalize(GObject *object)
poppler_action_free(annot_screen->action);
annot_screen->action = nullptr;
}
if (annot_screen->cursor_entering_action) {
poppler_action_free(annot_screen->cursor_entering_action);
annot_screen->cursor_entering_action = nullptr;
}
if (annot_screen->cursor_leaving_action) {
poppler_action_free(annot_screen->cursor_leaving_action);
annot_screen->cursor_leaving_action = nullptr;
}
if (annot_screen->mouse_pressed_action) {
poppler_action_free(annot_screen->mouse_pressed_action);
annot_screen->mouse_pressed_action = nullptr;
}
if (annot_screen->mouse_released_action) {
poppler_action_free(annot_screen->mouse_released_action);
annot_screen->mouse_released_action = nullptr;
}
if (annot_screen->page_opening_action) {
poppler_action_free(annot_screen->page_opening_action);
annot_screen->page_opening_action = nullptr;
}
if (annot_screen->page_closing_action) {
poppler_action_free(annot_screen->page_closing_action);
annot_screen->page_closing_action = nullptr;
}
if (annot_screen->page_visible_action) {
poppler_action_free(annot_screen->page_visible_action);
annot_screen->page_visible_action = nullptr;
}
if (annot_screen->page_invisible_action) {
poppler_action_free(annot_screen->page_invisible_action);
annot_screen->page_invisible_action = nullptr;
}
G_OBJECT_CLASS(poppler_annot_screen_parent_class)->finalize(object);
}
......
......@@ -52,6 +52,22 @@ static void poppler_form_field_finalize(GObject *object)
poppler_action_free(field->action);
field->action = nullptr;
}
if (field->field_modified_action) {
poppler_action_free(field->field_modified_action);
field->field_modified_action = nullptr;
}
if (field->format_field_action) {
poppler_action_free(field->format_field_action);
field->format_field_action = nullptr;
}
if (field->validate_field_action) {
poppler_action_free(field->validate_field_action);
field->validate_field_action = nullptr;
}
if (field->calculate_field_action) {
poppler_action_free(field->calculate_field_action);
field->calculate_field_action = nullptr;
}
field->widget = nullptr;
G_OBJECT_CLASS(poppler_form_field_parent_class)->finalize(object);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment