pmc/main.cc
changeset 54 c064ce9f40f5
parent 46 4b9e1ac40246
child 65 76514757b0d6
--- a/pmc/main.cc
+++ b/pmc/main.cc
@@ -91,6 +91,11 @@
                 for (i = 0; i < MAX; i++)
                     d[i]->move ((Vector (x + STEP, y)));
                 break;
+
+            case SDLK_RETURN:
+                fprintf (stderr, "Objects remaining: %d\n", surface->getInstances ());
+                break;
+
             default:
                 break;
             }
@@ -108,5 +113,10 @@
 
     delete surface;
 
+    /*
+     * the remaining objects will be removed on exit
+     */
+    fprintf (stderr, "Objects remaining on exit: %d\n", refCounter);
+
     return EXIT_SUCCESS;
 }