diff options
author | Erkin Bahceci <erkinbah@gmail.com> | 2009-08-21 21:54:59 -0500 |
---|---|---|
committer | Erkin Bahceci <erkinbah@gmail.com> | 2009-08-21 21:54:59 -0500 |
commit | acb6067ee71bca5dae79ee0d05eb1e5437bc1e3a (patch) | |
tree | a2a6081d426e45999e9b0370b4dc26fcb68361aa /src | |
parent | c7f81ebea72db06bd697377bf3aedce5d974c69c (diff) | |
download | zcomp-acb6067ee71bca5dae79ee0d05eb1e5437bc1e3a.tar.gz zcomp-acb6067ee71bca5dae79ee0d05eb1e5437bc1e3a.tar.bz2 |
Fix memory leaks.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugin.cpp | 1 | ||||
-rw-r--r-- | src/screen.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp index f5bf3f2..f9d8954 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -106,6 +106,7 @@ cloaderLoadPlugin (CompPlugin *p, static void cloaderUnloadPlugin (CompPlugin *p) { + delete p->vTable; } static CompStringList diff --git a/src/screen.cpp b/src/screen.cpp index 465c2df..d8f5bad 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -1900,6 +1900,8 @@ PrivateScreen::removeSequence (SnStartupSequence *sequence) startupSequences.erase (it); + delete s; + if (startupSequences.empty () && startupSequenceTimer.active ()) startupSequenceTimer.stop (); |