head 1.2; access; symbols pkgsrc-2014Q3:1.1.0.24 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.22 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.20 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.18 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.16 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.14 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.12 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.10 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.8 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.6 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.4 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.2 pkgsrc-2011Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2014.11.09.02.46.30; author obache; state dead; branches; next 1.1; commitid VnEbMMp8RgssisXx; 1.1 date 2011.11.13.07.52.02; author obache; state Exp; branches; next ; desc @@ 1.2 log @Update scim to 1.4.15. * Disable key snooping by default. * Handle special keys correctly. * Send reedit-changed event when composing reedit string. @ text @$NetBSD: patch-src_scim__helper__manager__server.cpp,v 1.1 2011/11/13 07:52:02 obache Exp $ * Variable Length Arrays with non-POD types are a GCC extension. --- src/scim_helper_manager_server.cpp.orig 2008-10-19 04:48:33.000000000 +0000 +++ src/scim_helper_manager_server.cpp @@@@ -95,10 +95,10 @@@@ void load_helper_modules (void) // so I added a workaround: have an array of modules and unload them all together in the end only. // TODO Need to figure out what's going on with this issue. - HelperModule module[mod_list.size ()]; - if (mod_list.size ()) { + HelperModule *module = new HelperModule[mod_list.size ()]; + for (size_t i = 0; i < mod_list.size (); ++i) { SCIM_DEBUG_MAIN (2) << " Load module: " << mod_list [i] << "\n"; @@@@ -120,6 +120,7 @@@@ void load_helper_modules (void) for (size_t i = 0; i < mod_list.size (); ++i) { module[i].unload (); } + delete[] module; } } @ 1.1 log @Update scim to 1.4.11. * multi monitor support * translation update. * some build fixes @ text @d1 1 a1 1 $NetBSD$ @