Commit a86d4fb
committed
Cleanup and avoid refleaks OSX Timer__timer_start.
Reference leaks where occurring with early `return NULL`, e.g. if
`PyObject_IsTrue(attribute)` or `PyMethod_Check(attribute)` failed.
Also there's plenty of cases where one doesn't need to set the error
message, as PyObject_GetAttrString (for example) will set the correct
exception.
Also apply similar cleanups to drawRect, even though it doesn't actually
suffer from refleaks.1 parent c292827 commit a86d4fbCopy full SHA for a86d4fb
File tree
Expand file treeCollapse file tree
2 files changed
+27
-59
lines changedOpen diff view settings
Filter options
- lib/matplotlib/backends
- src
Expand file treeCollapse file tree
2 files changed
+27
-59
lines changedOpen diff view settings
Collapse file
lib/matplotlib/backends/backend_macosx.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_macosx.py-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
59 | 58 | |
60 | 59 | |
61 | | - |
62 | 60 | |
63 | 61 | |
64 | 62 | |
|
Collapse file
+27-57Lines changed: 27 additions & 57 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1672 | 1672 | |
1673 | 1673 | |
1674 | 1674 | |
1675 | | - |
1676 | | - |
1677 | | - |
1678 | | - |
| 1675 | + |
| 1676 | + |
1679 | 1677 | |
1680 | 1678 | |
1681 | 1679 | |
1682 | | - |
1683 | | - |
1684 | | - |
1685 | | - |
1686 | | - |
1687 | | - |
1688 | | - |
1689 | 1680 | |
1690 | 1681 | |
1691 | 1682 | |
1692 | 1683 | |
1693 | | - |
1694 | | - |
1695 | 1684 | |
1696 | 1685 | |
1697 | 1686 | |
| ||
2391 | 2380 | |
2392 | 2381 | |
2393 | 2382 | |
2394 | | - |
2395 | 2383 | |
2396 | 2384 | |
2397 | | - |
2398 | | - |
| 2385 | + |
| 2386 | + |
2399 | 2387 | |
2400 | 2388 | |
2401 | 2389 | |
2402 | 2390 | |
2403 | 2391 | |
2404 | | - |
2405 | | - |
2406 | | - |
2407 | | - |
2408 | | - |
2409 | | - |
2410 | | - |
2411 | | - |
2412 | | - |
2413 | | - |
2414 | | - |
2415 | | - |
2416 | | - |
2417 | | - |
2418 | | - |
| 2392 | + |
| 2393 | + |
| 2394 | + |
| 2395 | + |
| 2396 | + |
| 2397 | + |
2419 | 2398 | |
2420 | | - |
2421 | | - |
2422 | | - |
| 2399 | + |
2423 | 2400 | |
2424 | | - |
2425 | | - |
2426 | | - |
2427 | | - |
2428 | | - |
2429 | | - |
2430 | | - |
2431 | | - |
2432 | | - |
2433 | | - |
2434 | | - |
2435 | | - |
2436 | | - |
2437 | | - |
2438 | | - |
2439 | | - |
2440 | | - |
| 2401 | + |
| 2402 | + |
2441 | 2403 | |
2442 | | - |
| 2404 | + |
2443 | 2405 | |
2444 | | - |
| 2406 | + |
2445 | 2407 | |
| 2408 | + |
2446 | 2409 | |
2447 | 2410 | |
2448 | 2411 | |
2449 | 2412 | |
2450 | | - |
| 2413 | + |
2451 | 2414 | |
2452 | 2415 | |
2453 | 2416 | |
| ||
2456 | 2419 | |
2457 | 2420 | |
2458 | 2421 | |
2459 | | - |
2460 | 2422 | |
2461 | | - |
| 2423 | + |
2462 | 2424 | |
2463 | 2425 | |
2464 | 2426 | |
| ||
2469 | 2431 | |
2470 | 2432 | |
2471 | 2433 | |
2472 | | - |
| 2434 | + |
| 2435 | + |
| 2436 | + |
| 2437 | + |
| 2438 | + |
| 2439 | + |
| 2440 | + |
| 2441 | + |
| 2442 | + |
2473 | 2443 | |
2474 | 2444 | |
2475 | 2445 | |
|
0 commit comments