------------------------------------------------------------
revno: 211
committer: Siegfried-Angel Gevatter Pujals <siegfr...@gevatter.com>
branch nick: bluebird
timestamp: Thu 2011-09-01 18:40:48 +0200
message:
  Fix regression in GetEvents introduced fixing array allocation.
modified:
  src/engine.vala


--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird

Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/engine.vala'
--- src/engine.vala	2011-08-30 14:01:07 +0000
+++ src/engine.vala	2011-09-01 16:40:48 +0000
@@ -126,8 +126,11 @@
 
         var results = new GenericArray<Event?> ();
         results.length = event_ids.length;
+        int i = 0;
         foreach (var id in event_ids)
-            results.add (events.lookup (id));
+        {
+            results.set(i++, events.lookup (id));
+        }
         return results;
     }
 

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to