x11grab: fix compilation
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 18 Mar 2012 00:09:40 +0000 (01:09 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 18 Mar 2012 00:12:03 +0000 (01:12 +0100)
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/x11grab.c

index 48d5118..46af711 100644 (file)
@@ -323,7 +323,7 @@ x11grab_read_header(AVFormatContext *s1)
     st->codec->bit_rate = x11grab->frame_size * 1/av_q2d(x11grab->time_base) * 8;
 
 out:
-    av_free(param);
+    av_free(dpyname);
     return ret;
 }