From e3e82c7972576447b5470a6c93d960809e25d39d Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 6 Mar 2014 19:19:04 -0500 Subject: [PATCH] GIFTranslator: Increment settings refcount So that the settings object won't be destroyed when released on the the view destructor. Fixes #10646 --- src/add-ons/translators/gif/GIFView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/add-ons/translators/gif/GIFView.cpp b/src/add-ons/translators/gif/GIFView.cpp index 98d6c93646..ffa0293793 100644 --- a/src/add-ons/translators/gif/GIFView.cpp +++ b/src/add-ons/translators/gif/GIFView.cpp @@ -186,6 +186,8 @@ GIFView::GIFView(TranslatorSettings* settings) SetExplicitPreferredSize(BSize((font.Size() * 400) / 12, (font.Size() * 300) / 12)); + fSettings->Acquire(); + RestorePrefs(); }