Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
memory leak beseitigt
Browse files Browse the repository at this point in the history
  • Loading branch information
dividuum committed Feb 17, 2012
1 parent b0676b6 commit 1618424
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -8,7 +8,7 @@ CFLAGS ?= -O3
endif

CFLAGS += -DVERSION='$(VERSION)'
CFLAGS +=-I/usr/include/lua5.1 -I/usr/include/freetype2/ -std=c99 -Wall -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-variable
CFLAGS +=-I/usr/include/lua5.1 -I/usr/include/freetype2/ -std=c99 -Wall -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations
LDFLAGS=-llua5.1 -levent -lglfw -lGL -lGLU -lGLEW -lftgl -lpng -ljpeg -lavformat -lavcodec -lavutil -lswscale -lz -lbz2

all: gpn-info
Expand Down
2 changes: 1 addition & 1 deletion main.c
Expand Up @@ -1142,7 +1142,7 @@ int main(int argc, char *argv[]) {
if (err != GLEW_OK)
die("cannot initialize glew");

glfwSetWindowTitle("GPN Info");
glfwSetWindowTitle("GPN Info " VERSION_STRING);
glfwSwapInterval(1);
glfwSetWindowSizeCallback(reshape);
glfwSetKeyCallback(keypressed);
Expand Down
2 changes: 2 additions & 0 deletions video.c
Expand Up @@ -179,6 +179,7 @@ static int video_next_frame(video_t *video) {
/* Is it what we're trying to parse? */
if (packet.stream_index != video->stream_idx) {
// fprintf(stderr, "not video\n");
av_free_packet(&packet);
goto again;
}

Expand All @@ -189,6 +190,7 @@ static int video_next_frame(video_t *video) {
/* Succes? If not, drop packet. */
if (!finished) {
fprintf(stderr, "not complete\n");
av_free_packet(&packet);
goto again;
}

Expand Down

0 comments on commit 1618424

Please sign in to comment.