Module: wine
Branch: master
Commit: 1b5ddc1e2f9e4dc4bbda2318e8e13adc6067ba52
URL: https://gitlab.winehq.org/wine/wine/-/commit/1b5ddc1e2f9e4dc4bbda2318e8e13a…
Author: Rémi Bernon <rbernon(a)codeweavers.com>
Date: Sun Jun 25 11:17:12 2023 +0200
winegstreamer: Avoid releasing wg_allocator memory samples twice.
When the sample size is too small, we were releasing it from the memory,
but kept the next_sample pointer set. Later, when the transform removes
the sample from the allocator, its refcount was decremented one more
time, effectively leaking the sample.
---
dlls/winegstreamer/wg_allocator.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winegstreamer/wg_allocator.c b/dlls/winegstreamer/wg_allocator.c
index 5cc2a6fcf12..a46a3de142a 100644
--- a/dlls/winegstreamer/wg_allocator.c
+++ b/dlls/winegstreamer/wg_allocator.c
@@ -196,9 +196,9 @@ static GstMemory *wg_allocator_alloc(GstAllocator *gst_allocator, gsize size,
pthread_mutex_lock(&allocator->mutex);
memory->sample = allocator->next_sample;
- if (memory->sample && memory->sample->max_size >= size)
- allocator->next_sample = NULL;
- else
+ allocator->next_sample = NULL;
+
+ if (memory->sample && memory->sample->max_size < size)
release_memory_sample(allocator, memory, true);
list_add_tail(&allocator->memory_list, &memory->entry);
Module: wine
Branch: master
Commit: fddb79776871ee00adf4d78583135a5d96ca8c06
URL: https://gitlab.winehq.org/wine/wine/-/commit/fddb79776871ee00adf4d78583135a…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Sat Jul 8 12:39:16 2023 +0200
dbghelp/tests: Fix the case of a comment.
---
dlls/dbghelp/tests/path.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dbghelp/tests/path.c b/dlls/dbghelp/tests/path.c
index 54189c7ed5c..756eb862df9 100644
--- a/dlls/dbghelp/tests/path.c
+++ b/dlls/dbghelp/tests/path.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Eric Pouech for Codeweavers
+ * Copyright 2023 Eric Pouech for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Module: wine
Branch: master
Commit: 3c947bba952bbd87b2d4d5e76ba8b5546706f4f7
URL: https://gitlab.winehq.org/wine/wine/-/commit/3c947bba952bbd87b2d4d5e76ba8b5…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Sat Jul 8 12:39:35 2023 +0200
winewayland.drv: Fix the spelling of a comment.
---
dlls/winewayland.drv/xdg-shell.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winewayland.drv/xdg-shell.xml b/dlls/winewayland.drv/xdg-shell.xml
index 6eb0a67c5d8..1df70014601 100644
--- a/dlls/winewayland.drv/xdg-shell.xml
+++ b/dlls/winewayland.drv/xdg-shell.xml
@@ -620,7 +620,7 @@
attributes (e.g. title, state, stacking, ...) are discarded for
an xdg_toplevel surface when it is unmapped. The xdg_toplevel returns to
the state it had right after xdg_surface.get_toplevel. The client
- can re-map the toplevel by perfoming a commit without any buffer
+ can re-map the toplevel by performing a commit without any buffer
attached, waiting for a configure event and handling it as usual (see
xdg_surface description).