Skip to content

Commit f817e6b

Browse files
gtkui: remove conf_lock/unlock call from _init_prefwin, because it's not a safe approach, and prone to deadlocks
1 parent 1a30d36 commit f817e6b

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

plugins/gtkui/prefwin/prefwin.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ _init_prefwin(void) {
176176

177177
gtk_window_set_transient_for (GTK_WINDOW (w), GTK_WINDOW (mainwin));
178178

179-
deadbeef->conf_lock ();
180-
181179
// output plugin selection
182180
prefwin_init_sound_tab (prefwin);
183181

@@ -207,8 +205,6 @@ _init_prefwin(void) {
207205
prefwin_init_hotkeys (prefwin);
208206
}
209207

210-
deadbeef->conf_unlock ();
211-
212208
g_signal_connect (GTK_DIALOG (prefwin), "response", G_CALLBACK (on_prefwin_response_cb), NULL);
213209

214210
gtk_window_set_modal (GTK_WINDOW (prefwin), FALSE);

0 commit comments

Comments
 (0)