summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-ref-string.c
Commit message (Collapse)AuthorAgeFilesLines
* trivial: Fix a tiny memory leak on failureRichard Hughes2022-04-131-2/+2
|
* Use the SPDX-License-Identifier in all source filesRichard Hughes2019-02-091-15/+1
|
* Remove the refcounted string interning featureRichard Hughes2018-05-211-57/+69
| | | | | | | | | This made very little difference to the PSS, RSS or load time and increased complexity considerably. Additionally, intern the locale when parsing XML documents and be more careful about refcounting known AsRefString objects rather than re-allocating them each time.
* Fix compile with -Wdiscarded-qualifiersRichard Hughes2017-03-151-2/+2
| | | | Some distros helpfully force this on for some reason.
* Add a destructor for AsRefStringKalev Lember2017-01-281-0/+6
| | | | | | | | | | AsRefString uses a singleton hash table for deduplicating strings. This is all "possibly lost" memory according to valgrind as the hash table never gets destroyed. This commit adds a custom destructor so that we can clean up the singleton hash table as well and avoid unnecessary noise in valgrind output.
* Fix one more thread safety issue with AsRefStringKalev Lember2016-12-021-8/+4
|
* Make AsRefString thread safeRichard Hughes2016-11-281-15/+25
| | | | This was crashing in the heavily multithreaded gnome-software.
* trivial: Add as_ref_string_new_static()Richard Hughes2016-11-211-0/+18
| | | | This reduces the number of common duplicate strings like 'C'.
* trivial: Add as_ref_string_debug()Richard Hughes2016-11-211-0/+95
| | | | This allows us to debug the reference counted string functionality.
* Add a refcounted overloaded C string objectRichard Hughes2016-11-211-0/+263