projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c67f3c5
)
gdk: Fix an oversight in GdkContentFormats
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 9 Jun 2023 12:12:56 +0000
(08:12 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 9 Jun 2023 12:17:34 +0000
(08:17 -0400)
When clearing a builder, reset the counts to 0.
Otherwise valgrind spots uninitialized memory
use in our testsuite.
gdk/gdkcontentformats.c
patch
|
blob
|
history
diff --git
a/gdk/gdkcontentformats.c
b/gdk/gdkcontentformats.c
index cb2528fbeed707e736c4b5e77bafa9ea44710ad6..9ca4db3205e46e769377295956d86852d812c00d 100644
(file)
--- a/
gdk/gdkcontentformats.c
+++ b/
gdk/gdkcontentformats.c
@@
-645,6
+645,9
@@
gdk_content_formats_builder_clear (GdkContentFormatsBuilder *builder)
{
g_clear_pointer (&builder->gtypes, g_slist_free);
g_clear_pointer (&builder->mime_types, g_slist_free);
+
+ builder->n_gtypes = 0;
+ builder->n_mime_types = 0;
}
/**