mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 16:38:54 +02:00
Merge branch 'fix-compile-resources-leak' into 'main'
glib-compile-resources: Fix a memory leak of the compiler option See merge request GNOME/glib!2501
This commit is contained in:
@@ -812,7 +812,7 @@ main (int argc, char **argv)
|
|||||||
char *c_name = NULL;
|
char *c_name = NULL;
|
||||||
char *c_name_no_underscores;
|
char *c_name_no_underscores;
|
||||||
const char *linkage = "extern";
|
const char *linkage = "extern";
|
||||||
const char *compiler = NULL;
|
char *compiler = NULL;
|
||||||
CompilerType compiler_type = COMPILER_GCC;
|
CompilerType compiler_type = COMPILER_GCC;
|
||||||
GOptionContext *context;
|
GOptionContext *context;
|
||||||
GOptionEntry entries[] = {
|
GOptionEntry entries[] = {
|
||||||
@@ -886,6 +886,7 @@ main (int argc, char **argv)
|
|||||||
linkage = "G_GNUC_INTERNAL";
|
linkage = "G_GNUC_INTERNAL";
|
||||||
|
|
||||||
compiler_type = get_compiler_id (compiler);
|
compiler_type = get_compiler_id (compiler);
|
||||||
|
g_free (compiler);
|
||||||
|
|
||||||
srcfile = argv[1];
|
srcfile = argv[1];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user