[mythtv-commits] Ticket #12917: mythfrontend.real crashes since Ubuntu 16.10 upgrade
MythTV
noreply at mythtv.org
Sat Nov 19 20:18:11 UTC 2016
#12917: mythfrontend.real crashes since Ubuntu 16.10 upgrade
-----------------------------------------+--------------------------
Reporter: heynnema@… | Owner: pbennett
Type: Bug Report - General | Status: closed
Priority: critical | Milestone: unknown
Component: MythTV - General | Version: 0.28.0
Severity: high | Resolution: fixed
Keywords: mythfrontend stack smashing | Ticket locked: 0
-----------------------------------------+--------------------------
Comment (by jyavenard):
Replying to [comment:34 pbennett]:
> Is that leak since my fix? Do you have a tool that detects leaks?
>
No, I just read C++ :)
The object is allocated, it is then passed by value. The pointer returned
by new is never deleted.
That will leak, guaranteed..
> I tried first allocating it on the stack but I get a compile error that
you cannot take the address of an object on the stack. It made sense
because as soon as you end the method where it is allocated it is no
longer valid (will be overwritten in the stack), so the
QNetworkConfiguration will be pointing to invalid data.
I just upgraded my laptop to 16.10 last night, will give it a try.
.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12917#comment:36>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list