[archive] Add a patch to Qt that fixes crash in Mac on locales

Qt 5.6+ got a bug in its Mac code that handles input method
change: https://bugreports.qt.io/browse/QTBUG-48772

The fix is pretty simple: stop freeing a string that's not
owned by the Qt method and instead free the object it actually
owns:

--- a/qtbase/src/plugins/platforms/cocoa/qcocoainputcontext.mm
2017-03-01 18:09:17.794948447 -0800
+++ b/qtbase/src/plugins/platforms/cocoa/qcocoainputcontext.mm
2017-03-01 18:25:40.362174074 -0800
@@ -137,8 +137,8 @@
             m_locale = locale;
             emitLocaleChanged();
         }
-        CFRelease(langRef);
     }
+    CFRelease(source);
 }

 QT_END_NAMESPACE

Previous lines obtain |langRef| with a Get method, and |source|
with a Copy, so this patch is the right way of freeing those.

Change-Id: I983bbd1bfce2d3c9c8b7e7987183550c5dd75dbf
1 file changed