Merge lp:~attente/unity-control-center/1431811 into lp:unity-control-center

Proposed by William Hua
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 12814
Merged at revision: 12812
Proposed branch: lp:~attente/unity-control-center/1431811
Merge into: lp:unity-control-center
Diff against target: 25 lines (+5/-2)
1 file modified
panels/region/gnome-region-panel-input.c (+5/-2)
To merge this branch: bzr merge lp:~attente/unity-control-center/1431811
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Review via email: mp+254403@code.launchpad.net

Commit message

Don't free the Fcitx config proxy if we haven't ever initialized it.

Description of the change

Don't free the Fcitx config proxy if we haven't ever initialized it.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks, can you split the deprecation warning fix in another request?

review: Needs Fixing
12814. By William Hua

Undo deprecation fixes.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'panels/region/gnome-region-panel-input.c'
--- panels/region/gnome-region-panel-input.c 2015-03-12 21:12:22 +0000
+++ panels/region/gnome-region-panel-input.c 2015-03-31 16:40:28 +0000
@@ -1610,7 +1610,8 @@
1610static void1610static void
1611clear_fcitx (void)1611clear_fcitx (void)
1612{1612{
1613 FcitxConfigFree (&fcitx_config.config);1613 if (fcitx_config.config_valid)
1614 FcitxConfigFree (&fcitx_config.config);
16141615
1615 if (fcitx_cancellable)1616 if (fcitx_cancellable)
1616 g_cancellable_cancel (fcitx_cancellable);1617 g_cancellable_cancel (fcitx_cancellable);
@@ -1864,8 +1865,10 @@
1864#endif1865#endif
18651866
1866#ifdef HAVE_FCITX1867#ifdef HAVE_FCITX
1867 fcitx_init ();
1868 is_fcitx_active = g_strcmp0 (module, GTK_IM_MODULE_FCITX) == 0;1868 is_fcitx_active = g_strcmp0 (module, GTK_IM_MODULE_FCITX) == 0;
1869
1870 if (is_fcitx_active)
1871 fcitx_init ();
1869#endif1872#endif
18701873
1871 populate_with_active_sources (store);1874 populate_with_active_sources (store);

Subscribers

People subscribed via source and target branches