Permalink
Browse files

Prevent a segfault in MythUIImage, this doesn't fix the root cause of…

… the problem but at least we won't crash. Refs #11047
  • Loading branch information...
1 parent 6c3ae81 commit 178ea5aaa562845e3685ffeff585ea57c6014a64 @stuartm stuartm committed Oct 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;

0 comments on commit 178ea5a

Please sign in to comment.