Skip to content

Commit

Permalink
A bit of checking in some places.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Aug 14, 2010
1 parent a159707 commit 94872b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion library/DFContext.cpp
Expand Up @@ -59,7 +59,6 @@ Context::Context (Process* p) : d (new DFContextShared())

Context::~Context()
{
cerr << "called Context destructor" << endl;
Detach();
delete d;
}
Expand Down
1 change: 0 additions & 1 deletion library/modules/Maps.cpp
Expand Up @@ -123,7 +123,6 @@ Maps::Maps(DFContextShared* _d)

Maps::~Maps()
{
cerr << "called Maps destructor" << endl;
if(d->Started)
Finish();
delete d;
Expand Down
8 changes: 7 additions & 1 deletion tools/examples/processenum.cpp
Expand Up @@ -106,7 +106,13 @@ int main (void)
if(cont)
{
if(cont->Attach())
cont->getMaps();
{
DFHack::Maps * mapz = cont->getMaps();
cont->Suspend();
mapz->Start();
cont->Resume();
}

bool result = cont->Detach();
if(!result)
{
Expand Down

0 comments on commit 94872b8

Please sign in to comment.