diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 8cbc6011d..da297eae5 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1245,9 +1245,12 @@ start_scan( gboolean ghb_idle_scan(signal_user_data_t *ud) { - const gchar *path; - path = ghb_dict_get_string(ud->globals, "scan_source"); + gchar *path; + // ghb_do_scan replaces "scan_source" key in dict, so we must + // make a copy of the string. + path = g_strdup(ghb_dict_get_string(ud->globals, "scan_source")); ghb_do_scan(ud, path, 0, TRUE); + g_free(path); return FALSE; } |