Maintenance.
* Fix setting the GSETTINGS_SCHEMA_DIR environment variable. * Use g_value_take_boxed() instead of deprecated g_value_set_boxed_take_ownership(). * Remove an unused variable. * Clean up load_category() a bit.
This commit is contained in:
@@ -167,7 +167,7 @@ LoadCategoryData;
|
||||
static LdSymbolCategory *
|
||||
load_category (LdLibrary *self, const gchar *path, const gchar *name)
|
||||
{
|
||||
LdSymbolCategory *cat;
|
||||
LdSymbolCategory *cat = NULL;
|
||||
gchar *icon_file, *category_file;
|
||||
gchar *human_name;
|
||||
LoadCategoryData data;
|
||||
@@ -200,13 +200,10 @@ load_category (LdLibrary *self, const gchar *path, const gchar *name)
|
||||
|
||||
g_free (human_name);
|
||||
g_free (category_file);
|
||||
g_free (icon_file);
|
||||
return cat;
|
||||
|
||||
load_category_fail_2:
|
||||
g_free (icon_file);
|
||||
load_category_fail_1:
|
||||
return NULL;
|
||||
return cat;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user