Print warning when deallocating objects

pull/4/head
pabr 2017-01-11 16:33:45 +01:00
rodzic d88c6b91d5
commit 7df1ba54c4
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -38,6 +38,7 @@ namespace leansdr {
runnable_common(const char *_name) : name(_name) { }
virtual void run() { }
virtual void shutdown() { }
~runnable_common() { fprintf(stderr, "Destroying %s !\n", name); }
};
struct window_placement {
@ -158,6 +159,7 @@ namespace leansdr {
}
unsigned long min_write;
unsigned long total_written, total_read;
~pipebuf() { fprintf(stderr, "Destroying %s !\n", name); }
};
template<typename T>