[geany/geany-plugins] f92ae3: commander: Don't leak a reference to a widget

Colomban Wendling git-noreply at xxxxx
Sat Aug 4 15:08:39 UTC 2012


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 04 Aug 2012 15:08:39
Commit:      f92ae3f0b81120b6e1abde0f89d5152d530a1c75
             https://github.com/geany/geany-plugins/commit/f92ae3f0b81120b6e1abde0f89d5152d530a1c75

Log Message:
-----------
commander: Don't leak a reference to a widget


Modified Paths:
--------------
    commander/src/commander-plugin.c

Modified: commander/src/commander-plugin.c
4 files changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -233,6 +233,10 @@ enum {
         gtk_menu_item_activate (item);
         gtk_widget_hide (widget);
       }
+       
+      if (item) {
+        g_object_unref (item);
+      }
       
       return TRUE;
     }


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list