Go to file
Hans de Goede b2362f2223 Reference the widget before returning it from ::create methods
Widgets (unlike Windows and Dialogs) returned by Gtk::Builder::get_widget*
start owned by the GtkBuilder object, the idea being that they will get
added to a container before the scope of the GtkBuilder object ends, and it
thus automatically gets destroyed.

But in the various ::create methods in pavucontrol, a pointer to the widget
gets returned, so that it can be added to a cointainer by the caller.
However as soon as the ::create method exits the GtkBuilder object owning
the widget, and thus also the widget gets destroyed, and we end up returning
free-ed memory.

This commit fixes this by making all ::create methods take a reference on
the widget before returning it, and having all the callers unreference the
widget after adding it to a container.

https://bugs.freedesktop.org/show_bug.cgi?id=83144
https://bugzilla.redhat.com/show_bug.cgi?id=1133339

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-09-07 13:51:27 +03:00
doc build-sys: Prepare for a 2.0 release 2013-03-08 13:19:41 +05:30
m4 Make use of common ZP_LYNX_DOC macro. 2008-08-08 15:57:50 +02:00
po Add TRANSLATORS_README.txt 2014-03-24 09:31:26 +02:00
src Reference the widget before returning it from ::create methods 2014-09-07 13:51:27 +03:00
.gitignore gitignore: Add *.swp. 2012-07-04 12:57:53 +03:00
LICENSE Fix license mess: change everything to GPL 2007-05-23 23:34:52 +00:00
Makefile.am build-sys: Drop ChangeLog generation from git 2013-03-08 13:25:44 +05:30
autogen.sh remove $Id$ 2008-07-15 13:24:56 +02:00
bootstrap.sh build-sys: Use autoreconf in bootstrap.sh 2013-03-25 08:45:24 +02:00
configure.ac build-sys: Prepare for a 2.0 release 2013-03-08 13:19:41 +05:30