summaryrefslogtreecommitdiff
path: root/src/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.cpp')
-rw-r--r--src/plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp
index 8a22f14..c47ec80 100644
--- a/src/plugin.cpp
+++ b/src/plugin.cpp
@@ -534,6 +534,9 @@ CompPlugin::push (CompPlugin *p)
CompPlugin *
CompPlugin::pop (void)
{
+ if (plugins.empty ())
+ return NULL;
+
CompPlugin *p = plugins.front ();
if (!p)