fbd-feedback-manager: Don't leak config_path
It's assigned multiple times.
This commit is contained in:
committed by
Guido Gunther
parent
437b19edd4
commit
9c9f767986
@@ -437,7 +437,6 @@ find_themefile (void)
|
|||||||
|
|
||||||
g_autoptr (GError) err = NULL;
|
g_autoptr (GError) err = NULL;
|
||||||
gchar **xdg_data_dirs = (gchar **) g_get_system_data_dirs ();
|
gchar **xdg_data_dirs = (gchar **) g_get_system_data_dirs ();
|
||||||
g_autofree gchar *config_path = NULL;
|
|
||||||
g_autofree gchar *compatibles = NULL;
|
g_autofree gchar *compatibles = NULL;
|
||||||
|
|
||||||
// Try to read the device name
|
// Try to read the device name
|
||||||
@@ -453,6 +452,8 @@ find_themefile (void)
|
|||||||
|
|
||||||
// Iterate over $XDG_DATA_DIRS
|
// Iterate over $XDG_DATA_DIRS
|
||||||
for (i = 0; i < g_strv_length (xdg_data_dirs); i++) {
|
for (i = 0; i < g_strv_length (xdg_data_dirs); i++) {
|
||||||
|
g_autofree gchar *config_path = NULL;
|
||||||
|
|
||||||
config_path = g_strconcat (xdg_data_dirs[i], "feedbackd/themes/", comp, ".json", NULL);
|
config_path = g_strconcat (xdg_data_dirs[i], "feedbackd/themes/", comp, ".json", NULL);
|
||||||
g_debug ("Searching for device specific themefile in %s", config_path);
|
g_debug ("Searching for device specific themefile in %s", config_path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user