Commit 6aa252e7 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't leak name and stock_id. (#131358, Morten Welinder)

Wed Jan 14 21:00:49 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
	Don't leak name and stock_id.  (#131358, Morten Welinder)
parent f7591921
Wed Jan 14 21:00:49 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
Don't leak name and stock_id. (#131358, Morten Welinder)
Wed Jan 14 13:07:30 GMT 2004 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Updates to Section 5
......
Wed Jan 14 21:00:49 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
Don't leak name and stock_id. (#131358, Morten Welinder)
Wed Jan 14 13:07:30 GMT 2004 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Updates to Section 5
......
Wed Jan 14 21:00:49 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
Don't leak name and stock_id. (#131358, Morten Welinder)
Wed Jan 14 13:07:30 GMT 2004 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Updates to Section 5
......
Wed Jan 14 21:00:49 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
Don't leak name and stock_id. (#131358, Morten Welinder)
Wed Jan 14 13:07:30 GMT 2004 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Updates to Section 5
......
Wed Jan 14 21:00:49 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
Don't leak name and stock_id. (#131358, Morten Welinder)
Wed Jan 14 13:07:30 GMT 2004 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Updates to Section 5
......
......@@ -562,8 +562,8 @@ gtk_action_group_add_action_with_accel (GtkActionGroup *action_group,
guint accel_key = 0;
GdkModifierType accel_mods;
GtkStockItem stock_item;
const gchar *name;
const gchar *stock_id;
gchar *name;
gchar *stock_id;
g_object_get (action, "name", &name, "stock_id", &stock_id, NULL);
......@@ -582,9 +582,11 @@ gtk_action_group_add_action_with_accel (GtkActionGroup *action_group,
gtk_accel_map_add_entry (accel_path, accel_key, accel_mods);
gtk_action_set_accel_path (action, accel_path);
g_free (accel_path);
gtk_action_group_add_action (action_group, action);
g_free (accel_path);
g_free (stock_id);
g_free (name);
}
/**
......
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