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
20 changes: 15 additions & 5 deletions cfg/gtk.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,6 @@
<alloc init="true" no-fail="true">g_zlib_decompressor_new</alloc>
<use>g_object_ref</use>
<dealloc>g_object_unref</dealloc>
<dealloc>gtk_widget_destroy</dealloc>
</memory>
<memory>
<alloc init="true" no-fail="true">g_tree_new</alloc>
Expand All @@ -926,6 +925,10 @@
<use>g_file_attribute_matcher_ref</use>
<dealloc>g_file_attribute_matcher_unref</dealloc>
</memory>
<memory>
<alloc init="true" no-fail="true">gtk_window_new</alloc>
<dealloc>gtk_widget_destroy</dealloc>
</memory>
<function name="g_exit">
<noreturn>true</noreturn>
</function>
Expand Down Expand Up @@ -9688,6 +9691,14 @@
<leak-ignore/>
<noreturn>false</noreturn>
</function>
<function name="gtk_window_new">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="GtkWidget *"/>
<arg nr="1">
<not-bool/>
</arg>
</function>
<function name="gtk_window_list_toplevels">
<leak-ignore/>
<noreturn>false</noreturn>
Expand Down Expand Up @@ -21130,10 +21141,6 @@
<leak-ignore/>
<noreturn>false</noreturn>
</function>
<function name="gtk_widget_destroy">
<leak-ignore/>
<noreturn>false</noreturn>
</function>
<function name="gtk_widget_destroyed">
<leak-ignore/>
<noreturn>false</noreturn>
Expand Down Expand Up @@ -22967,6 +22974,9 @@
<define name="GTK_IMAGE_ICON_NAME" value="1"/>
<define name="GTK_IMAGE_GICON" value="2"/>
<define name="GTK_IMAGE_PAINTABLE" value="3"/>
<!-- gtk/gtkwindow.h -->
<define name="GTK_WINDOW_TOPLEVEL" value="0"/>
<define name="GTK_WINDOW_POPUP" value="1"/>
<!-- gtk/gtk.h -->
<define name="GTK_STOCK_ZOOM_IN" value="&quot;gtk-zoom-in&quot;"/>
<define name="GTK_STOCK_ZOOM_FIT" value="&quot;gtk-zoom-fit&quot;"/>
Expand Down
6 changes: 6 additions & 0 deletions test/cfg/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,3 +581,9 @@ void g_tree_test() {
printf("%p\n", tree2);
// cppcheck-suppress memleak
}

void gtk_widget_destroy_test() {
GtkWidget *widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(widget);
gtk_widget_destroy(widget);
}
Loading