mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-28 01:08:27 -04:00
don't delete image when destroying zmpacket
This commit is contained in:
1 parent
626af8d2fb
commit
3dafb5c225
1 file changed
+2
-3
+2
-3
@@ -65,9 +65,8 @@ ZMPacket::~ZMPacket() {
|
||||
if ( frame ) {
|
||||
av_frame_free( &frame );
|
||||
}
|
||||
if ( image ) {
|
||||
delete image;
|
||||
}
|
||||
// We assume the image was allocated elsewhere, so we just unref it.
|
||||
image = NULL;
|
||||
}
|
||||
|
||||
int ZMPacket::decode( AVCodecContext *ctx ) {
|
||||
|
||||
Reference in new issue
Block a user