Skip to content

Commit

Permalink
Fix None object has clear() in input mode icon. (#1097364)
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwarat committed May 19, 2014
1 parent c13d52a commit b852cfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion engine/python2/engine.py
Expand Up @@ -1104,7 +1104,8 @@ def __destroy(self, obj):
# It seems do_destroy() is called when launch_engine() is called.
#self.__remove_dict_files()
# It seems super.destroy() does not unref the engine.
self.__input_mode_icon.clear()
if self.__input_mode_icon != None:
self.__input_mode_icon.clear()
self.__input_mode_icon = None

def __join_all_segments(self):
Expand Down
3 changes: 2 additions & 1 deletion engine/python3/engine.py
Expand Up @@ -1099,7 +1099,8 @@ def __destroy(self, obj):
# It seems do_destroy() is called when launch_engine() is called.
#self.__remove_dict_files()
# It seems super.destroy() does not unref the engine.
self.__input_mode_icon.clear()
if self.__input_mode_icon != None:
self.__input_mode_icon.clear()
self.__input_mode_icon = None

def __join_all_segments(self):
Expand Down

0 comments on commit b852cfb

Please sign in to comment.