Merge lp:~azzar1/compiz-workarounds-plugin/fix-memory-leak into lp:compiz-workarounds-plugin
Proposed by
Andrea Azzarone
Status: | Merged |
---|---|
Merged at revision: | 112 |
Proposed branch: | lp:~azzar1/compiz-workarounds-plugin/fix-memory-leak |
Merge into: | lp:compiz-workarounds-plugin |
Diff against target: |
15 lines (+5/-0) 1 file modified
src/workarounds.cpp (+5/-0) |
To merge this branch: | bzr merge lp:~azzar1/compiz-workarounds-plugin/fix-memory-leak |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sam Spilsbury | Approve | ||
Review via email: mp+69886@code.launchpad.net |
Description of the change
Fixes a memory leak. As you can read here (http://
P.S. according to me this 'if' has no sense
if (!XGetClassHint (screen->dpy (), window->id (), &classHint) != Success)
To post a comment you must log in.
+1, merging.
With the XGetClassHint call, it is indeed correct to check for the return value since XGetClassHint is really just a wrapper around XGetWindowProperty which is a synchronous operation, and it is possible that the WM_CLASS property might not be set or the window might have been destroyed, however the way we are doing the check is strange. It should be for if (XGetClassHint ... == Success). I will change that when I merge your branch.