~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/ipelib/ipegroup.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2011-02-15 23:06:48 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110215230648-ddivgj61o8k7et79
Tags: 7.0.14-1
* New upstream.  Update control, rules.

* libipe7.0.13.install:
* ipe.links: Remove.  Replace with explicit calls in rules using
  $(IPEVERS).  Fixes lua link.  Closes: #611560.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
/*
5
5
 
6
6
    This file is part of the extensible drawing editor Ipe.
7
 
    Copyright (C) 1993-2009  Otfried Cheong
 
7
    Copyright (C) 1993-2010  Otfried Cheong
8
8
 
9
9
    Ipe is free software; you can redistribute it and/or modify it
10
10
    under the terms of the GNU General Public License as published by
80
80
//! Destructor.
81
81
Group::~Group()
82
82
{
83
 
  if (iImp->iRefCount == 1)
 
83
  if (iImp->iRefCount == 1) {
 
84
    for (List::iterator it = iImp->iObjects.begin();
 
85
         it != iImp->iObjects.end(); ++it) {
 
86
      delete *it;
 
87
      *it = 0;
 
88
    }
84
89
    delete iImp;
85
 
  else
 
90
  } else
86
91
    iImp->iRefCount--;
87
92
}
88
93