~ubuntu-branches/ubuntu/jaunty/moon/jaunty

« back to all changes in this revision

Viewing changes to src/dependencyobject.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-03-06 10:09:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090306100949-pgxjxjqltaxi12rz
Tags: 1.0.1-0ubuntu1
New upstream release (LP: #338665)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
struct EventList {
31
31
        int current_token;
32
32
        int emitting;
33
 
        int event_count;
34
33
        List *event_list;
35
34
};
36
35
 
615
614
                goto delete_ctx;
616
615
        }
617
616
 
618
 
        if (events == NULL || events->lists [event_id].event_list->IsEmpty ()) {
 
617
        if (ctx->length == 0)
619
618
                goto delete_ctx;
620
 
        }
621
619
 
622
620
        events->lists [event_id].emitting--;
623
621
        events->emitting--;
634
632
        }
635
633
 
636
634
 delete_ctx:
637
 
        // make sure to pass false here, as the lists are shallow copied and the nodes are shared
638
635
        delete ctx;
639
636
}
640
637