mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Make GQuark register intentional leaks
This commit is contained in:
parent
6d45bdb1bf
commit
fc3d3a5499
@ -43,6 +43,7 @@
|
||||
#include "gtestutils.h"
|
||||
#include "glib_trace.h"
|
||||
#include "glib-init.h"
|
||||
#include "glib-private.h"
|
||||
|
||||
#define QUARK_BLOCK_SIZE 2048
|
||||
#define QUARK_STRING_BLOCK_SIZE (4096 - sizeof (gsize))
|
||||
@ -295,6 +296,7 @@ quark_new (gchar *string)
|
||||
* us to do lockless lookup of the arrays, and there shouldn't be that
|
||||
* many quarks in an app
|
||||
*/
|
||||
g_ignore_leak (g_atomic_pointer_get (&quarks));
|
||||
g_atomic_pointer_set (&quarks, quarks_new);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user