Author: gs Date: Thu Oct 18 12:06:28 2007 New Revision: 41457 URL: http://svn.opensuse.org/viewcvs/yast?rev=41457&view=rev Log: add YUI_CHECK_NEW Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc?rev=41457&r1=41456&r2=41457&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc Thu Oct 18 12:06:28 2007 @@ -191,6 +191,8 @@ NCPopupMenu * dialog = new NCPopupMenu( at, itemsBegin(), itemsEnd() ); + YUI_CHECK_NEW( dialog ); + int selection = dialog->post(); if ( selection < 0 ) { Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc?rev=41457&r1=41456&r2=41457&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc Thu Oct 18 12:06:28 2007 @@ -109,6 +109,8 @@ NCPopupMenu * dialog = new NCPopupMenu( at, _selectedItem->childrenBegin(), _selectedItem->childrenEnd() ); + YUI_CHECK_NEW( dialog ); + again = (dialog->post( &postevent ) == NCursesEvent::CONTINUE); YDialog::deleteTopmostDialog(); } else { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org