Wireshark-commits: [Wireshark-commits] master 8383cb9: Lua: Do not deregister Listener in __gc.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 17 Nov 2015 21:51:52 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8383cb923b63535b46d52f00f430f784cbbb9014
Submitter: Stig Bj?rlykke (stig@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

8383cb9 by Stig Bjørlykke (stig@xxxxxxxxxxxxx):

    Lua: Do not deregister Listener in __gc.
    
    Listeners should not be deregistered in __gc because they will go out
    of scope while in use.  Instead free allocated data when deregistering
    the Listener (Listener.remove() and Reload Lua Plugins).
    
    Bug: 11722
    Change-Id: Iadf6506757df06e476ac3cac38c05f1d1d497dc4
    Reviewed-on: https://code.wireshark.org/review/11924
    Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    

Actions performed:

    from  27502f1   debian: Don't ship unused duplicated images for guides
    adds  8383cb9   Lua: Do not deregister Listener in __gc.


Summary of changes:
 epan/wslua/wslua_listener.c |   15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)