• Jiří Techet's avatar
    Fix crash when plugin_set_key_group() is called several times by plugins (#1426) · 27070062
    Jiří Techet yazdı
    When plugin calls plugin_set_key_group() several times for the same
    group (when creating keybindings dynamically and needs to reset them),
    it crashes with the current code the second time it gets called.
    
    The reason is that group->plugin_keys is an array into which entries of
    group->key_items point and when calling
    
    g_ptr_array_set_size(group->key_items, 0);
    
    it calls free_key_binding() for every item - when these items are
    deallocated by g_free(group->plugin_keys) previously, calls of
    free_key_binding() reference an invalid memory.
    
    Just first resizing group->key_items (and calling free_key_binding() for
    its items) and freeing group->plugin_keys afterwards fixes the problem.
    27070062
Adı
Son kayıt (commit)
Son güncelleme
ctags Loading commit data...
data Loading commit data...
doc Loading commit data...
icons Loading commit data...
m4 Loading commit data...
plugins Loading commit data...
po Loading commit data...
scintilla Loading commit data...
scripts Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COMMITTERS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.pre-1-22 Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.I18N Loading commit data...
README.Packagers Loading commit data...
README.rst Loading commit data...
THANKS Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
geany.desktop.in Loading commit data...
geany.exe.manifest Loading commit data...
geany.gladep Loading commit data...
geany.nsi.in Loading commit data...
geany.pc.in Loading commit data...
geany.spec.in Loading commit data...
geany_private.rc Loading commit data...