[Aptitude-devel] r3236 - branches/aptitude-0.3/aptitude/src/generic/problemresolver
Daniel Burrows
dburrows@costa.debian.org
Sun, 01 May 2005 15:51:34 +0000
Author: dburrows
Date: Sun May 1 15:51:33 2005
New Revision: 3236
Modified:
branches/aptitude-0.3/aptitude/src/generic/problemresolver/test.cc
Log:
Fix a refcounting error.
Modified: branches/aptitude-0.3/aptitude/src/generic/problemresolver/test.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/problemresolver/test.cc (original)
+++ branches/aptitude-0.3/aptitude/src/generic/problemresolver/test.cc Sun May 1 15:51:33 2005
@@ -719,6 +719,8 @@
dummy_universe_ref(const dummy_universe_ref &other)
:rep(other.rep)
{
+ if(rep)
+ rep->incref();
}
/** Assumes this is the first reference to the universe. */