SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
22
x11/remmina/patches/patch-plugins_vnc_vnc_plugin_c
Normal file
22
x11/remmina/patches/patch-plugins_vnc_vnc_plugin_c
Normal file
|
@ -0,0 +1,22 @@
|
|||
Fix double mutex lock and double free
|
||||
|
||||
Index: plugins/vnc/vnc_plugin.c
|
||||
--- plugins/vnc/vnc_plugin.c.orig
|
||||
+++ plugins/vnc/vnc_plugin.c
|
||||
@@ -114,8 +114,6 @@ static void onMainThread_schedule_callback_and_wait(st
|
||||
pthread_mutex_lock(&d->mu);
|
||||
gdk_threads_add_idle((GSourceFunc)onMainThread_cb, (gpointer)d);
|
||||
|
||||
- pthread_mutex_lock(&d->mu);
|
||||
-
|
||||
pthread_cleanup_pop(0);
|
||||
pthread_mutex_unlock(&d->mu);
|
||||
pthread_mutex_destroy(&d->mu);
|
||||
@@ -240,7 +238,6 @@ static void remmina_plugin_vnc_update_scale(RemminaPro
|
||||
d->gp = gp;
|
||||
d->scale = scale;
|
||||
onMainThread_schedule_callback_and_wait(d);
|
||||
- g_free(d);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue