diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-02 01:23:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-02 01:23:15 +0300 |
commit | b96e34946aa326a9f8dfb80ce34cce9fc219405e (patch) | |
tree | 964b4d36e8a018c0c656b9d52a291202c7dc6704 /src/gui/widgets/scrollarea.cpp | |
parent | 91737976634821cef7d1e373ac8bf7a7b2e95a69 (diff) | |
download | plus-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.gz plus-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.bz2 plus-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.xz plus-b96e34946aa326a9f8dfb80ce34cce9fc219405e.zip |
Add missing checks.
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index a78048314..0be492ee6 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -148,7 +148,8 @@ void ScrollArea::init() } } - textbox->decRef(); + if (textbox) + textbox->decRef(); // Load vertical scrollbar skin Image *vscroll = Theme::getImageFromTheme("vscroll_grey.png"); |