diff options
author | bouyer <bouyer@pkgsrc.org> | 2018-04-15 10:00:56 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2018-04-15 10:00:56 +0000 |
commit | 63ccfab16e247c113cc3269808b57361559df01c (patch) | |
tree | e6560e8a77b82bb2b8b2f2e3f224f45f09607f5f | |
parent | 32355a52154ced37d55b8cb82597b72be6ac55a8 (diff) | |
download | pkgsrc-63ccfab16e247c113cc3269808b57361559df01c.tar.gz |
Fix memory leak; bump PKGREVISION
-rw-r--r-- | geography/opencpn-plugin-statusbar/Makefile | 3 | ||||
-rw-r--r-- | geography/opencpn-plugin-statusbar/distinfo | 3 | ||||
-rw-r--r-- | geography/opencpn-plugin-statusbar/patches/patch-src_statusbar_pi.cpp | 13 |
3 files changed, 17 insertions, 2 deletions
diff --git a/geography/opencpn-plugin-statusbar/Makefile b/geography/opencpn-plugin-statusbar/Makefile index 03e89823bcc..cc1c44d64e0 100644 --- a/geography/opencpn-plugin-statusbar/Makefile +++ b/geography/opencpn-plugin-statusbar/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.4 2018/04/09 11:04:36 bouyer Exp $ +# $NetBSD: Makefile,v 1.5 2018/04/15 10:00:56 bouyer Exp $ # VERSION= 20180405 +PKGREVISION= 1 DISTNAME= statusbar_pi-${VERSION} PKGNAME= opencpn-plugin-statusbar-${VERSION} CATEGORIES= geography diff --git a/geography/opencpn-plugin-statusbar/distinfo b/geography/opencpn-plugin-statusbar/distinfo index 70ccd897e99..e66858e623d 100644 --- a/geography/opencpn-plugin-statusbar/distinfo +++ b/geography/opencpn-plugin-statusbar/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.3 2018/04/05 16:10:04 bouyer Exp $ +$NetBSD: distinfo,v 1.4 2018/04/15 10:00:56 bouyer Exp $ SHA1 (statusbar_pi-20180405-024822eb32a61f4ef4e52d4cb15bd1f4b86b2763.tar.gz) = 52191419c7957657c464866446f1c37b0edc0710 RMD160 (statusbar_pi-20180405-024822eb32a61f4ef4e52d4cb15bd1f4b86b2763.tar.gz) = 19fe39ab310f453f5804bd9e5f976a9de5254ca0 SHA512 (statusbar_pi-20180405-024822eb32a61f4ef4e52d4cb15bd1f4b86b2763.tar.gz) = f8dff4363982a93e56dcd70add80eaefda0d7f7ca806fdb021e73144896ddbcdbe5354d83a0c0f18517821c698ef7214de36ea2cfc99c97a397edc08640c63b0 Size (statusbar_pi-20180405-024822eb32a61f4ef4e52d4cb15bd1f4b86b2763.tar.gz) = 218490 bytes SHA1 (patch-cmake_PluginConfigure.cmake) = 5b51256240f1355ebd746ea0a4c0492a2ac935e6 +SHA1 (patch-src_statusbar_pi.cpp) = a3f3904e212b1a79f964b61d9f457d11ac624b78 diff --git a/geography/opencpn-plugin-statusbar/patches/patch-src_statusbar_pi.cpp b/geography/opencpn-plugin-statusbar/patches/patch-src_statusbar_pi.cpp new file mode 100644 index 00000000000..69f8d4f91e6 --- /dev/null +++ b/geography/opencpn-plugin-statusbar/patches/patch-src_statusbar_pi.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-src_statusbar_pi.cpp,v 1.1 2018/04/15 10:00:57 bouyer Exp $ +Fix memory leak + +--- src/statusbar_pi.cpp.orig 2018-04-14 18:19:56.820903950 +0200 ++++ src/statusbar_pi.cpp 2018-04-14 18:27:10.083280415 +0200 +@@ -424,6 +424,7 @@ + if(pgc) { + pgc->SetBrush(wxColour(color.Red(), color.Green(), color.Blue(), alpha)); + pgc->DrawRectangle(px, py, width, height); ++ delete pgc; + } + #else + dc.SetTextBackground(color); |