Fixing GTK2 Leaks. r/sr/a=blizzard. b=206361
git-svn-id: svn://10.0.0.236/trunk@142660 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
79bae84301
commit
ccd19305ca
@ -971,6 +971,8 @@ nsSystemFontsGTK::GetSystemFontInfo(GtkWidget *aWidget, nsFont* aFont,
|
||||
PangoFontDescription *desc;
|
||||
desc = pango_font_description_from_string(fontname);
|
||||
|
||||
g_free(fontname);
|
||||
|
||||
aFont->name.Truncate();
|
||||
#ifdef MOZ_ENABLE_XFT
|
||||
if (NS_IsXftEnabled()) {
|
||||
|
||||
@ -365,8 +365,8 @@ nsClipboard::HasDataMatchingFlavors(nsISupportsArray *aFlavorList,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gtk_selection_data_free(selection_data);
|
||||
g_free(targets);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user