summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2012-10-02 11:05:20 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2012-10-02 11:05:43 (GMT)
commit178ea5aaa562845e3685ffeff585ea57c6014a64 (patch)
treedc9fb1efa51602ad6d66da13a2bcb5c0f531caaf
parent6c3ae81b967ff21235c82481b6c6244ad97b6d20 (diff)
Prevent a segfault in MythUIImage, this doesn't fix the root cause of the problem but at least we won't crash. Refs #11047v0.27-pre
-rw-r--r--mythtv/libs/libmythui/mythuiimage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mythtv/libs/libmythui/mythuiimage.cpp b/mythtv/libs/libmythui/mythuiimage.cpp
index 474cf94..ac748c3 100644
--- a/mythtv/libs/libmythui/mythuiimage.cpp
+++ b/mythtv/libs/libmythui/mythuiimage.cpp
@@ -1551,7 +1551,8 @@ void MythUIImage::customEvent(QEvent *event)
++it)
{
MythImage *im = (*it).first;
- im->DecrRef();
+ if (im)
+ im->DecrRef();
}
delete animationFrames;