summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/valgrind/memcheck/suppressions.txt14
-rw-r--r--views/controls/native/native_view_host_gtk.cc2
2 files changed, 15 insertions, 1 deletions
diff --git a/tools/valgrind/memcheck/suppressions.txt b/tools/valgrind/memcheck/suppressions.txt
index ad06d63..88e777f 100644
--- a/tools/valgrind/memcheck/suppressions.txt
+++ b/tools/valgrind/memcheck/suppressions.txt
@@ -4476,6 +4476,20 @@
fun:_ZN24NativeTabContentsViewGtk25InitNativeTabContentsViewEv
}
{
+ bug_96368
+ Memcheck:Leak
+ fun:malloc
+ fun:g_malloc
+ fun:g_slice_alloc
+ fun:g_slice_alloc0
+ fun:g_type_create_instance
+ fun:g_object_constructor
+ fun:g_object_newv
+ fun:g_object_new
+ fun:gtk_views_fixed_new
+ fun:_ZN5views17NativeViewHostGtk11CreateFixedEb
+}
+{
bug_96369
Memcheck:Leak
fun:malloc
diff --git a/views/controls/native/native_view_host_gtk.cc b/views/controls/native/native_view_host_gtk.cc
index 1fceafe..adc21d5 100644
--- a/views/controls/native/native_view_host_gtk.cc
+++ b/views/controls/native/native_view_host_gtk.cc
@@ -112,7 +112,7 @@ NativeViewHostGtk::NativeViewHostGtk(NativeViewHost* host)
NativeViewHostGtk::~NativeViewHostGtk() {
if (fixed_) {
gtk_container_foreach(GTK_CONTAINER(fixed_), RemoveFromParent, fixed_);
- DestroyFixed();
+ gtk_widget_destroy(fixed_);
}
}