Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cfg/gtk.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,6 @@
<alloc init="true" no-fail="true">g_app_info_get_default_for_uri_scheme</alloc>
<alloc init="true" no-fail="true">g_application_new</alloc>
<alloc init="true" no-fail="true">g_application_get_dbus_connection</alloc>
<alloc init="true" no-fail="true">g_application_get_default</alloc>
<alloc init="true" no-fail="true">g_buffered_input_stream_new</alloc>
<alloc init="true" no-fail="true">g_buffered_output_stream_new</alloc>
<alloc init="true" no-fail="true">g_cancellable_new</alloc>
Expand Down Expand Up @@ -926,6 +925,10 @@
<use>g_file_attribute_matcher_ref</use>
<dealloc>g_file_attribute_matcher_unref</dealloc>
</memory>
<function name="g_application_get_default">
<leak-ignore/>
<noreturn>false</noreturn>
</function>
<function name="g_exit">
<noreturn>true</noreturn>
</function>
Expand Down
4 changes: 4 additions & 0 deletions test/cfg/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ void validCode(int argInt, GHashTableIter * hash_table_iter, GHashTable * hash_t
// cppcheck-suppress valueFlowBailout // TODO: caused by <pure/>?
printf("%s", str);
g_free(str);

// transfer none functions: output should not be unreffed
const GApplication *app = g_application_get_default();
printf("%p\n", app);
}

void g_malloc_test()
Expand Down
Loading