summaryrefslogtreecommitdiff
path: root/src/plugin.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-08-21 03:29:25 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-08-21 03:29:25 +0200
commit1dc7bcb93e7b32cdd0674d1a94f3f7add1fd9bda (patch)
treef754520f393bef81acad25a5d93d7d448a675198 /src/plugin.cpp
parent4db5fe0236fc3b6a4505932253b96e5f7618d3b1 (diff)
downloadmobileperf-1dc7bcb93e7b32cdd0674d1a94f3f7add1fd9bda.tar.gz
mobileperf-1dc7bcb93e7b32cdd0674d1a94f3f7add1fd9bda.tar.bz2
Fixed segfaults.
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)