diff --git a/mozilla/widget/src/gtk2/nsLookAndFeel.cpp b/mozilla/widget/src/gtk2/nsLookAndFeel.cpp index 51c631e9530..ca14f9366ea 100644 --- a/mozilla/widget/src/gtk2/nsLookAndFeel.cpp +++ b/mozilla/widget/src/gtk2/nsLookAndFeel.cpp @@ -394,7 +394,7 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric) g_object_get(gtk_widget_get_settings(box), "gtk-dnd-drag-threshold", &threshold, NULL); - gtk_widget_destroy(box); + gtk_object_sink(GTK_OBJECT(box)); aMetric = threshold; } break;