Fix leak of GTK entry widget. (Bug 487705) r=karlt sr=roc

This commit is contained in:
L. David Baron 2009-04-13 08:28:58 -07:00
parent e0da8e9d44
commit 4a552c724c

View File

@ -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