]> git.sesse.net Git - nageru/commitdiff
Fix a small memory leak.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 29 Jun 2017 19:15:29 +0000 (21:15 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 29 Jun 2017 19:22:25 +0000 (21:22 +0200)
decklink_util.cpp

index a6bdfd9cd65fe4831491a515346bd53322d600e7..d8081961e9880a2c35ab3216cb9794f6b5f8e5c5 100644 (file)
@@ -20,6 +20,7 @@ map<uint32_t, VideoMode> summarize_video_modes(IDeckLinkDisplayModeIterator *mod
                        mode.name = "Unknown mode";
                } else {
                        mode.name = mode_name;
+                       free((char *)mode_name);
                }
 
                mode.autodetect = false;