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:
dougt%meer.net 2003-05-20 20:41:58 +00:00
parent 79bae84301
commit ccd19305ca
2 changed files with 3 additions and 1 deletions

View File

@ -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()) {

View File

@ -365,8 +365,8 @@ nsClipboard::HasDataMatchingFlavors(nsISupportsArray *aFlavorList,
}
}
}
gtk_selection_data_free(selection_data);
g_free(targets);
return NS_OK;
}