glom r1920 - in trunk: . glom/mode_data



Author: arminb
Date: Sun Feb 22 13:15:16 2009
New Revision: 1920
URL: http://svn.gnome.org/viewvc/glom?rev=1920&view=rev

Log:
2009-02-22  Armin Burgmeier  <armin openismus com>

	* glom/mode_data/flowtablewithfields.cc (add_field_at_position): Don't
	leak the Gtk::EventBox.


Modified:
   trunk/ChangeLog
   trunk/glom/mode_data/flowtablewithfields.cc

Modified: trunk/glom/mode_data/flowtablewithfields.cc
==============================================================================
--- trunk/glom/mode_data/flowtablewithfields.cc	(original)
+++ trunk/glom/mode_data/flowtablewithfields.cc	Sun Feb 22 13:15:16 2009
@@ -539,7 +539,7 @@
       label->set_property("yalign", 0.0); //Equivalent to Gtk::ALIGN_TOP. Center is neater next to entries, but center is silly next to large images.
   }
   
-  Gtk::EventBox* eventbox = new Gtk::EventBox();
+  Gtk::EventBox* eventbox = Gtk::manage(new Gtk::EventBox());
   eventbox->add(*info.m_first);
   eventbox->set_visible_window(false);
   eventbox->set_events(Gdk::ALL_EVENTS_MASK);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]