diff options
Diffstat (limited to 'Ivy')
-rw-r--r-- | Ivy/Ivy.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Ivy/Ivy.cxx b/Ivy/Ivy.cxx index 3906333..c10785f 100644 --- a/Ivy/Ivy.cxx +++ b/Ivy/Ivy.cxx @@ -28,11 +28,15 @@ Ivy::~Ivy() stop();
regexp_out.clear();
- for ( unsigned int i = 0; i < callbacks.size(); i ++)
- {
+ if ( synchronous )
+ {
+ for ( unsigned int i = 0; i < callbacks.size(); i ++)
+ {
delete callbacks[i];
- }
+ }
+ }
callbacks.clear();
+
// if ( direct_callback ) delete direct_callback;
// if ( application_callback ) delete application_callback;
|