Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GtkPrinterOptionWidget GType not released after Display destruction #1838

Open
ptziegler opened this issue Feb 15, 2025 · 0 comments
Open

GtkPrinterOptionWidget GType not released after Display destruction #1838

ptziegler opened this issue Feb 15, 2025 · 0 comments
Labels
Linux/GTK Happens on Linux

Comments

@ptziegler
Copy link
Contributor

As discussed in #1832

Describe the bug

When creating a new Display, the GtkPrinterOptionWidget GType introduced with 89e9775 is initalized, but not deinitialized when the display is disposed again:

long printerOptionWidgetType = GTK.gtk_printer_option_widget_get_type();
long printerOptionWidgetClass = OS.g_type_class_ref (printerOptionWidgetType);
printerOptionWidgetNewProc = OS.G_OBJECT_CLASS_CONSTRUCTOR (printerOptionWidgetClass);
OS.G_OBJECT_CLASS_SET_CONSTRUCTOR (printerOptionWidgetClass, OS.printerOptionWidgetNewProc_CALLBACK(printerOptionWidgetNewProc));
OS.g_type_class_unref (printerOptionWidgetClass);

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
@ptziegler ptziegler added the Linux/GTK Happens on Linux label Feb 15, 2025
@ptziegler ptziegler changed the title PrintOperation not released after Display destruction GtkPrinterOptionWidget GType not released after Display destruction Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux/GTK Happens on Linux
Projects
None yet
Development

No branches or pull requests

1 participant