Bug 268371 memory leak in nsLookAndFeel::GetMetric()

patch maker=brian.lu@sun.com r=blizzard sr=rbs


git-svn-id: svn://10.0.0.236/trunk@166803 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ginn.chen%sun.com 2004-12-17 05:39:19 +00:00
parent 0a5ad3891e
commit b261deaaed

View File

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