git: use g_signal_connect_object() in GitLogCommand
commit275d5efe25f2e8ca6c22109c6422e31a90abeb0a
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Tue, 19 Feb 2013 08:08:34 +0000 (19 09:08 +0100)
committerCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Tue, 19 Feb 2013 22:58:02 +0000 (19 23:58 +0100)
tree4034984390883a68845b7bda8cb7a8b2ce55a295
parentccef579ddf0015347f4b376a4bd7447ca65ad872
git: use g_signal_connect_object() in GitLogCommand

Use g_signal_connect_object() in GitLogCommand to connect to the signals
on GitLogDataCommand. This way the signals will be disconnected when
GitLogCommand is disposed. The signals need to be disconnected since
the GitLogDataCommand may not be finalized when GitLogCommand releases
its reference to it.

https://bugzilla.gnome.org/show_bug.cgi?id=694194
plugins/git/git-log-command.c