mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix leak of GTK entry widget. (Bug 487705) r=karlt sr=roc
This commit is contained in:
parent
e0da8e9d44
commit
4a552c724c
@ -789,6 +789,7 @@ nsLookAndFeel::InitLookAndFeel()
|
||||
|
||||
// invisible character styles
|
||||
GtkWidget *entry = gtk_entry_new();
|
||||
g_object_ref_sink(entry);
|
||||
guint value;
|
||||
g_object_get (entry, "invisible-char", &value, NULL);
|
||||
sInvisibleCharacter = PRUnichar(value);
|
||||
@ -799,6 +800,7 @@ nsLookAndFeel::InitLookAndFeel()
|
||||
NULL);
|
||||
|
||||
gtk_widget_destroy(entry);
|
||||
g_object_unref(entry);
|
||||
}
|
||||
|
||||
// virtual
|
||||
|
Loading…
Reference in New Issue
Block a user