Commit ebc892e7 authored by Sven Neumann's avatar Sven Neumann
Browse files

Hopefully fixed the damned Script-Fu bug!


--Sven
parent b2317dcd
Tue Nov 2 22:40:31 MET 1999 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c: Fonts aren't free'd after
a gdk_font_load but unref'd of course. I just wonder why this has
ever worked before...
This should fix bugs #2554, #2774, #2798, #2963 and #3209. Whee!
Mon Nov 1 09:28:46 PST 1999 Manish Singh <yosh@gimp.org>
* Made 1.1.11 release
......
......@@ -1516,7 +1516,7 @@ script_fu_font_preview (GtkWidget *preview,
if (font != NULL)
{
g_free (font);
gdk_font_unref (font);
strtok (fontname, "-");
family = strtok (NULL, "-");
......@@ -1605,7 +1605,8 @@ script_fu_ok_callback (GtkWidget *widget,
g_message (_("At least one font you've choosen is invalid.\nPlease check your settings.\n"));
return;
}
g_free (font);
else
gdk_font_unref (font);
}
length = strlen (script->script_name) + 3;
......@@ -2176,7 +2177,6 @@ script_fu_font_dialog_ok (GtkWidget *widget,
font = (SFFont *) data;
fontname = gtk_font_selection_dialog_get_font_name (GTK_FONT_SELECTION_DIALOG (font->dialog));
if (fontname != NULL)
{
......
......@@ -1516,7 +1516,7 @@ script_fu_font_preview (GtkWidget *preview,
if (font != NULL)
{
g_free (font);
gdk_font_unref (font);
strtok (fontname, "-");
family = strtok (NULL, "-");
......@@ -1605,7 +1605,8 @@ script_fu_ok_callback (GtkWidget *widget,
g_message (_("At least one font you've choosen is invalid.\nPlease check your settings.\n"));
return;
}
g_free (font);
else
gdk_font_unref (font);
}
length = strlen (script->script_name) + 3;
......@@ -2176,7 +2177,6 @@ script_fu_font_dialog_ok (GtkWidget *widget,
font = (SFFont *) data;
fontname = gtk_font_selection_dialog_get_font_name (GTK_FONT_SELECTION_DIALOG (font->dialog));
if (fontname != NULL)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment