Skip to content

Commit

Permalink
fix #873 remove some unnecessary null pointer checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Apr 13, 2024
1 parent b2a82de commit a089fcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/modules/qt/kdenlivetitle_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ QTransform stringToTransform(const QString &s)
static void qscene_delete(void *data)
{
QGraphicsScene *scene = (QGraphicsScene *) data;
if (scene)
delete scene;
delete scene;
scene = NULL;
}

Expand Down
8 changes: 2 additions & 6 deletions src/modules/rubberband/filter_rbpitch.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* filter_rbpitch.c -- adjust audio pitch
* Copyright (C) 2020 Meltytech, LLC
* Copyright (C) 2020-2024 Meltytech, LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -295,11 +295,7 @@ mlt_filter filter_rbpitch_init(mlt_profile profile, mlt_service_type type, const
if (filter) {
mlt_filter_close(filter);
}

if (pdata) {
free(pdata);
}

free(pdata);
filter = NULL;
}
return filter;
Expand Down

0 comments on commit a089fcc

Please sign in to comment.