зеркало из https://github.com/mozilla/gecko-dev.git
only destroy the widget if it has actually been created
This commit is contained in:
Родитель
22ca77073e
Коммит
22a93da773
|
@ -74,7 +74,8 @@ nsWindow::nsWindow()
|
|||
nsWindow::~nsWindow()
|
||||
{
|
||||
OnDestroy();
|
||||
gtk_widget_destroy(mWidget);
|
||||
if (GTK_IS_WIDGET(mWidget))
|
||||
gtk_widget_destroy(mWidget);
|
||||
if (nsnull != mGC) {
|
||||
gdk_gc_destroy(mGC);
|
||||
mGC = nsnull;
|
||||
|
|
Загрузка…
Ссылка в новой задаче