Free the string vector returned by g_listenv().
2006-06-13 Tor Lillqvist <tml@novell.com> * app/plug-in/gimpenvirontable.c (gimp_environ_table_populate): Free the string vector returned by g_listenv(). * libgimpwidgets/gimpwidgets.def: Remove deprecated gimp_prop_file_entry_new.
This commit is contained in:

committed by
Tor Lillqvist

parent
168644db29
commit
4af35085a3
@ -1,3 +1,11 @@
|
||||
2006-06-13 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* app/plug-in/gimpenvirontable.c (gimp_environ_table_populate):
|
||||
Free the string vector returned by g_listenv().
|
||||
|
||||
* libgimpwidgets/gimpwidgets.def: Remove deprecated
|
||||
gimp_prop_file_entry_new.
|
||||
|
||||
2006-06-12 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
||||
|
||||
* menus/image-menu.xml.in: remove strong/weak undo from menu;
|
||||
|
@ -297,9 +297,11 @@ gimp_environ_table_legal_name (gchar *name)
|
||||
static void
|
||||
gimp_environ_table_populate (GimpEnvironTable *environ_table)
|
||||
{
|
||||
gchar **var = g_listenv ();
|
||||
gchar **env = g_listenv ();
|
||||
gchar **var;
|
||||
GPtrArray *env_array;
|
||||
|
||||
var = env;
|
||||
env_array = g_ptr_array_new ();
|
||||
|
||||
while (*var)
|
||||
@ -315,6 +317,8 @@ gimp_environ_table_populate (GimpEnvironTable *environ_table)
|
||||
var++;
|
||||
}
|
||||
|
||||
g_strfreev (env);
|
||||
|
||||
if (environ_table->vars)
|
||||
g_hash_table_foreach (environ_table->vars,
|
||||
(GHFunc) gimp_environ_table_populate_one,
|
||||
|
@ -236,7 +236,6 @@ EXPORTS
|
||||
gimp_prop_enum_stock_box_new
|
||||
gimp_prop_expander_new
|
||||
gimp_prop_file_chooser_button_new
|
||||
gimp_prop_file_entry_new
|
||||
gimp_prop_hscale_new
|
||||
gimp_prop_int_combo_box_new
|
||||
gimp_prop_label_new
|
||||
|
Reference in New Issue
Block a user