← Back to team overview

zeitgeist team mailing list archive

[Branch ~zeitgeist/zeitgeist/bluebird] Rev 273: Fix segmentation fault removing a blacklist that doesn't exist.

 

------------------------------------------------------------
revno: 273
committer: Siegfried-Angel Gevatter Pujals <siegfried@xxxxxxxxxxxx>
branch nick: bluebird
timestamp: Sat 2011-09-24 18:04:43 +0200
message:
  Fix segmentation fault removing a blacklist that doesn't exist.
modified:
  extensions/blacklist.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 'extensions/blacklist.vala'
--- extensions/blacklist.vala	2011-09-16 09:15:06 +0000
+++ extensions/blacklist.vala	2011-09-24 16:04:43 +0000
@@ -117,11 +117,15 @@
         {
             Event event_template = blacklist.lookup (template_id);
             if (blacklist.remove (template_id))
+            {
                 debug ("Removed blacklist template: %s", template_id);
+                template_removed (template_id, event_template.to_variant ());
+                flush ();
+            }
             else
+            {
                 debug ("Blacklist template \"%s\" not found.", template_id);
-            template_removed (template_id, event_template.to_variant ());
-            flush ();
+            }
         }
 
         public Variant get_templates ()