Merge lp:~aacid/unity-2d/disconnect_signal_on_destruction into lp:unity-2d

Proposed by Albert Astals Cid
Status: Merged
Approved by: Gerry Boland
Approved revision: 972
Merged at revision: 977
Proposed branch: lp:~aacid/unity-2d/disconnect_signal_on_destruction
Merge into: lp:unity-2d
Diff against target: 12 lines (+2/-0)
1 file modified
libunity-2d-private/src/unity2ddeclarativeview.cpp (+2/-0)
To merge this branch: bzr merge lp:~aacid/unity-2d/disconnect_signal_on_destruction
Reviewer Review Type Date Requested Status
Gerry Boland Pending
Review via email: mp+97007@code.launchpad.net

Description of the change

Disconnect gsignal on destruction of Unity2dDeclarativeView

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libunity-2d-private/src/unity2ddeclarativeview.cpp'
2--- libunity-2d-private/src/unity2ddeclarativeview.cpp 2012-03-02 11:56:43 +0000
3+++ libunity-2d-private/src/unity2ddeclarativeview.cpp 2012-03-12 12:05:23 +0000
4@@ -63,6 +63,8 @@
5
6 Unity2DDeclarativeView::~Unity2DDeclarativeView()
7 {
8+ WnckScreen* screen = wnck_screen_get_default();
9+ g_signal_handlers_disconnect_by_func(G_OBJECT(screen), gpointer(activeWorkspaceChangedCB), this);
10 }
11
12 bool Unity2DDeclarativeView::useOpenGL() const

Subscribers

People subscribed via source and target branches