gtk_widget_destroy does not unref the widget unless it's a TLW or in a
authorPaul Cornett <paulcor@bullseye.com>
Fri, 22 Jun 2007 06:53:30 +0000 (06:53 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 22 Jun 2007 06:53:30 +0000 (06:53 +0000)
commitdd2422b32018abf7bca2b8da438e4ef941b174d2
tree40e71adc094e6f382d9d85d7f2d61a9bc6274513
parent0d5c7b2dca9b1fc476b4e7146ff92dde91481d6b
gtk_widget_destroy does not unref the widget unless it's a TLW or in a
container, so use gtk_object_sink to delete temporary, parentless widgets.
Fixes memory leak bug #1741184.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/artgtk.cpp
src/gtk/settings.cpp