From: <ale...@us...> - 2012-01-16 14:30:58
|
Revision: 53863 http://firebird.svn.sourceforge.net/firebird/?rev=53863&view=rev Author: alexpeshkoff Date: 2012-01-16 14:30:47 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Fixed segfault in case of error in queEvents() Modified Paths: -------------- firebird/trunk/src/yvalve/why.cpp Modified: firebird/trunk/src/yvalve/why.cpp =================================================================== --- firebird/trunk/src/yvalve/why.cpp 2012-01-14 03:32:30 UTC (rev 53862) +++ firebird/trunk/src/yvalve/why.cpp 2012-01-16 14:30:47 UTC (rev 53863) @@ -2648,7 +2648,6 @@ Callback* callback = new Callback(ast, arg); events = attachment->queEvents(&status, callback, length, eventsData); - events->deleteCallback = true; if (!status.isSuccess()) { @@ -2656,6 +2655,7 @@ return status[1]; } + events->deleteCallback = true; *id = FB_API_HANDLE_TO_ULONG(events->handle); } catch (const Exception& e) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |